Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: utils/tests/css/src/ExpressionTest.dart

Issue 8937017: New CSS parser written in Dart to replace pyparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Put back for DartC Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« utils/css/tree.dart ('K') | « utils/css/validate.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/css/src/ExpressionTest.dart
diff --git a/utils/tests/css/src/ExpressionTest.dart b/utils/tests/css/src/ExpressionTest.dart
index ccb69925e35f0ada27ff9bf2ce46307fc4a10328..777b40e88980fd7ec27e5bf258473593d175a38a 100644
--- a/utils/tests/css/src/ExpressionTest.dart
+++ b/utils/tests/css/src/ExpressionTest.dart
@@ -26,7 +26,7 @@ class SelectorLiteralTest {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE, ".foobar"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -41,7 +41,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
".foobar .bar .no-story"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -72,7 +72,7 @@ class SelectorLiteralTest {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE, "#elemId"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
Expect.isNotNull(exprTree);
@@ -89,7 +89,7 @@ class SelectorLiteralTest {
static void testElement() {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE, "div"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -103,7 +103,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
"div div span"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -133,7 +133,7 @@ class SelectorLiteralTest {
static void testNamespace() {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE, "ns1|div"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -152,7 +152,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
"ns1|div div ns2|span .foobar"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -195,7 +195,7 @@ class SelectorLiteralTest {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE,
"div, .foobar ,#elemId, .xyzzy .test, ns1|div div #elemId .foobar"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 5);
var groupIdx = 0;
@@ -273,7 +273,7 @@ class SelectorLiteralTest {
lang.SourceFile.IN_MEMORY_FILE,
".foobar > .bar + .no-story ~ myNs|div #elemId"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -317,7 +317,7 @@ class SelectorLiteralTest {
Parser parser = new Parser(new lang.SourceFile(
lang.SourceFile.IN_MEMORY_FILE, "*"));
- List<SelectorGroup> exprTree = parser.preprocess();
+ List<SelectorGroup> exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -333,7 +333,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
"*.foobar"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -360,7 +360,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
"myNs|*.foobar"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
@@ -390,7 +390,7 @@ class SelectorLiteralTest {
parser = new Parser(new lang.SourceFile(lang.SourceFile.IN_MEMORY_FILE,
"*|*.foobar"));
- exprTree = parser.preprocess();
+ exprTree = parser.parse();
Expect.isNotNull(exprTree);
Expect.equals(exprTree.length, 1);
for (selectorGroup in exprTree) {
« utils/css/tree.dart ('K') | « utils/css/validate.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698