chromium/third_party/blink/renderer/core/css/parser/css_parser_impl_test.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/css/parser/css_parser_impl.h"

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_font_family_value.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_observer.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token_stream.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/core/css/parser/css_variable_parser.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/style_rule.h"
#include "third_party/blink/renderer/core/css/style_rule_font_feature_values.h"
#include "third_party/blink/renderer/core/css/style_rule_font_palette_values.h"
#include "third_party/blink/renderer/core/css/style_rule_import.h"
#include "third_party/blink/renderer/core/css/style_rule_nested_declarations.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"

namespace blink {

class TestCSSParserObserver : public CSSParserObserver {};

TEST(CSSParserImplTest, AtImportOffsets) {}

TEST(CSSParserImplTest, AtMediaOffsets) {}

TEST(CSSParserImplTest, AtSupportsOffsets) {}

TEST(CSSParserImplTest, AtFontFaceOffsets) {}

TEST(CSSParserImplTest, AtKeyframesOffsets) {}

TEST(CSSParserImplTest, AtPageOffsets) {}

TEST(CSSParserImplTest, AtPageMarginOffsets) {}

TEST(CSSParserImplTest, AtPropertyOffsets) {}

TEST(CSSParserImplTest, AtCounterStyleOffsets) {}

TEST(CSSParserImplTest, AtContainerOffsets) {}

TEST(CSSParserImplTest, DirectNesting) {}

TEST(CSSParserImplTest, RuleNotStartingWithAmpersand) {}

TEST(CSSParserImplTest, ImplicitDescendantSelectors) {}

TEST(CSSParserImplTest, NestedRelativeSelector) {}

TEST(CSSParserImplTest, NestingAtTopLevelIsLegalThoughIsMatchesNothing) {}

TEST(CSSParserImplTest, ErrorRecoveryEatsOnlyFirstDeclaration) {}

TEST(CSSParserImplTest, NestedEmptySelectorCrash) {}

TEST(CSSParserImplTest, NestedRulesInsideMediaQueries) {}

// A version of NestedRulesInsideMediaQueries where CSSNestedDeclarations
// is disabled. Can be removed when the CSSNestedDeclarations is removed.
TEST(CSSParserImplTest,
     NestedRulesInsideMediaQueries_CSSNestedDeclarationsDisabled) {}

TEST(CSSParserImplTest, ObserveNestedMediaQuery) {}

TEST(CSSParserImplTest, ObserveNestedLayer) {}

TEST(CSSParserImplTest, NestedIdent) {}

TEST(CSSParserImplTest, ObserveNestedDeclarations_Interleaved) {}

TEST(CSSParserImplTest, ObserveNestedDeclarations_Trailing) {}

TEST(CSSParserImplTest,
     ConsumeUnparsedDeclarationRemovesImportantAnnotationIfPresent) {}

TEST(CSSParserImplTest, InvalidLayerRules) {}

TEST(CSSParserImplTest, ValidLayerBlockRule) {}

TEST(CSSParserImplTest, ValidLayerStatementRule) {}

TEST(CSSParserImplTest, NestedLayerRules) {}

TEST(CSSParserImplTest, LayeredImportRules) {}

TEST(CSSParserImplTest, LayeredImportRulesInvalid) {}

TEST(CSSParserImplTest, ImportRulesWithSupports) {}

TEST(CSSParserImplTest, LayeredImportRulesMultipleLayers) {}

TEST(CSSParserImplTest, CorrectAtRuleOrderingWithLayers) {}

TEST(CSSParserImplTest, EmptyLayerStatementsAtWrongPositions) {}

TEST(CSSParserImplTest, EmptyLayerStatementAfterRegularRule) {}

TEST(CSSParserImplTest, FontPaletteValuesDisabled) {}

TEST(CSSParserImplTest, FontPaletteValuesBasicRuleParsing) {}

TEST(CSSParserImplTest, FontPaletteValuesMultipleFamiliesParsing) {}

// Font-family descriptor inside @font-palette-values should not contain generic
// families, compare:
// https://drafts.csswg.org/css-fonts/#descdef-font-palette-values-font-family.
TEST(CSSParserImplTest, FontPaletteValuesGenericFamiliesNotParsing) {}

TEST(CSSParserImplTest, FontFeatureValuesRuleParsing) {}

TEST(CSSParserImplTest, FontFeatureValuesOffsets) {}

TEST(CSSParserImplTest, CSSFunction) {}

static String RoundTripProperty(Document& document, String property_text) {}

TEST(CSSParserImplTest, AllPropertiesCanParseImportant) {}

TEST(CSSParserImplTest, ParseSupportsBlinkFeature) {}

TEST(CSSParserImplTest, ParseSupportsBlinkFeatureAuthorStylesheet) {}

TEST(CSSParserImplTest, ParseSupportsBlinkFeatureDisabledFeature) {}

}  // namespace blink