OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/parser/CSSSelectorParser.h" | 5 #include "core/css/parser/CSSSelectorParser.h" |
6 | 6 |
7 #include "core/css/CSSSelectorList.h" | 7 #include "core/css/CSSSelectorList.h" |
8 #include "core/css/parser/CSSTokenizer.h" | 8 #include "core/css/parser/CSSTokenizer.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 }; | 244 }; |
245 | 245 |
246 for (auto testCase : testCases) { | 246 for (auto testCase : testCases) { |
247 CSSTokenizer::Scope scope(testCase); | 247 CSSTokenizer::Scope scope(testCase); |
248 CSSParserTokenRange range = scope.tokenRange(); | 248 CSSParserTokenRange range = scope.tokenRange(); |
249 CSSSelectorList list = CSSSelectorParser::parseSelector(range, CSSParser
Context(HTMLStandardMode, nullptr), nullptr); | 249 CSSSelectorList list = CSSSelectorParser::parseSelector(range, CSSParser
Context(HTMLStandardMode, nullptr), nullptr); |
250 EXPECT_FALSE(list.isValid()); | 250 EXPECT_FALSE(list.isValid()); |
251 } | 251 } |
252 } | 252 } |
253 | 253 |
254 } // namespace | 254 } // namespace blink |
OLD | NEW |