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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/selectors.js

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Bit-mapped flags to indicate which tests the selector is suitable for 1 // Bit-mapped flags to indicate which tests the selector is suitable for
2 var TEST_QSA = 0x01; // querySelector() and querySelectorAll() test s 2 var TEST_QSA = 0x01; // querySelector() and querySelectorAll() test s
3 var TEST_FIND = 0x04; // find() and findAll() tests, may be unsuitab le for querySelector[All] 3 var TEST_FIND = 0x04; // find() and findAll() tests, may be unsuitab le for querySelector[All]
4 var TEST_MATCH = 0x10; // matches() tests 4 var TEST_MATCH = 0x10; // matches() tests
5 5
6 /* 6 /*
7 * All of these invalid selectors should result in a SyntaxError being thrown by the APIs. 7 * All of these invalid selectors should result in a SyntaxError being thrown by the APIs.
8 * 8 *
9 * name: A descriptive name of the selector being tested 9 * name: A descriptive name of the selector being tested
10 * selector: The selector to test 10 * selector: The selector to test
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 {name: "General sibling combinator, whitespace after (1)", selector: "#sibling-p2~\t\r\n#sibling-p3 ", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH}, 708 {name: "General sibling combinator, whitespace after (1)", selector: "#sibling-p2~\t\r\n#sibling-p3 ", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH},
709 {name: "General sibling combinator, whitespace before (1)", selector: "#sibling-p2\t\r\n~#sibling-p3 ", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH}, 709 {name: "General sibling combinator, whitespace before (1)", selector: "#sibling-p2\t\r\n~#sibling-p3 ", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH},
710 {name: "General sibling combinator, no whitespace (1)", selector: "#sibling-p2~#sibling-p3", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH}, 710 {name: "General sibling combinator, no whitespace (1)", selector: "#sibling-p2~#sibling-p3", ctx: "", expect: ["sibling-p3"], level: 3, testType: TEST_FIND | TEST_MATCH},
711 711
712 // Group of selectors (comma) 712 // Group of selectors (comma)
713 {name: "Syntax, group of selectors separator, surrounded by whitespace (1)", s elector: "#group em\t\r \n,\t\r \n#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH}, 713 {name: "Syntax, group of selectors separator, surrounded by whitespace (1)", s elector: "#group em\t\r \n,\t\r \n#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH},
714 {name: "Syntax, group of selectors separator, whitespace after (1)", s elector: "#group em,\t\r\n#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH}, 714 {name: "Syntax, group of selectors separator, whitespace after (1)", s elector: "#group em,\t\r\n#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH},
715 {name: "Syntax, group of selectors separator, whitespace before (1)", s elector: "#group em\t\r\n,#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH}, 715 {name: "Syntax, group of selectors separator, whitespace before (1)", s elector: "#group em\t\r\n,#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH},
716 {name: "Syntax, group of selectors separator, no whitespace (1)", s elector: "#group em,#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH}, 716 {name: "Syntax, group of selectors separator, no whitespace (1)", s elector: "#group em,#group strong", ctx: "", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_FIND | TEST_MATCH},
717 ]; 717 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698