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

Side by Side Diff: LayoutTests/fast/selectors/element-closeset-expected.txt

Issue 693203004: Revert of Adding Element.closest() API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/fast/selectors/element-closeset.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This test makes sure the closest() API works correctly
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS theTarget.closest("#theTarget") is theTarget
7 PASS theTarget.closest("ancestor") is ancestor
8 PASS theTarget.closest("tribe ancestor") is ancestor
9 PASS theTarget.closest("tribe > ancestor") is ancestor
10 PASS theTarget.closest("realm + ancestor") is ancestor
11 PASS theTarget.closest("realm ~ ancestor") is ancestor
12 PASS theTarget.closest("tribe, ancestor") is ancestor
13 PASS theTarget.closest("ancestor, tribe") is ancestor
14 PASS theTarget.closest("tribe realm") is null
15 PASS theTarget.closest("tribe realm throne") is null
16 PASS theTarget.closest("tribe realm ancestor") is null
17 PASS theTarget.closest("realm > ancestor") is null
18 PASS theTarget.closest("throne + ancestor") is null
19 PASS theTarget.closest("throne ~ ancestor") is null
20 PASS theTarget.closest(".classic") is ancestor
21 PASS theTarget.closest("#john") is ancestor
22 PASS theTarget.closest("doe") is null
23 PASS theTarget.closest("ancestor[name=old]") is ancestor
24 PASS theTarget.closest(null) is null
25 PASS theTarget.closest(undefined) is null
26 PASS sour.closest("lemon") is sour
27 PASS sour.closest("a, b, c, d") is d
28 PASS sour.closest("a, b, c") is c
29 PASS sour.closest("a, b") is b
30 PASS sour.closest("d, c, b, a") is d
31 PASS sour.closest("c, b, a") is c
32 PASS sour.closest("b, a") is b
33 PASS sour.closest("a") is a
34 PASS document.closest is undefined
35 PASS document.closest() threw exception TypeError: undefined is not a function.
36 PASS theTarget.closest() threw exception TypeError: Failed to execute 'closest' on 'Element': 1 argument required, but only 0 present..
37 PASS theTarget.closest("") threw exception SyntaxError: Failed to execute 'close st' on 'Element': '' is not a valid selector..
38 PASS theTarget.closest(".123") threw exception SyntaxError: Failed to execute 'c losest' on 'Element': '.123' is not a valid selector..
39 PASS theTarget.closest(" ") threw exception SyntaxError: Failed to execute 'c losest' on 'Element': ' ' is not a valid selector..
40 PASS theTarget.closest(")") threw exception SyntaxError: Failed to execute 'clos est' on 'Element': ')' is not a valid selector..
41 PASS theTarget.closest("(") threw exception SyntaxError: Failed to execute 'clos est' on 'Element': '(' is not a valid selector..
42 PASS theTarget.closest("()") threw exception SyntaxError: Failed to execute 'clo sest' on 'Element': '()' is not a valid selector..
43 PASS theTarget.closest("^_^") threw exception SyntaxError: Failed to execute 'cl osest' on 'Element': '^_^' is not a valid selector..
44 PASS theTarget.closest("{") threw exception SyntaxError: Failed to execute 'clos est' on 'Element': '{' is not a valid selector..
45 PASS theTarget.closest("}") threw exception SyntaxError: Failed to execute 'clos est' on 'Element': '}' is not a valid selector..
46 PASS theTarget.closest("{}") threw exception SyntaxError: Failed to execute 'clo sest' on 'Element': '{}' is not a valid selector..
47 PASS theTarget.closest(":scope") is theTarget
48 PASS theTarget.closest("ancestor :scope") is theTarget
49 PASS theTarget.closest("ancestor > :scope") is theTarget
50 PASS theTarget.closest("sibling + :scope") is theTarget
51 PASS theTarget.closest("sibling ~ :scope") is theTarget
52 PASS theTarget.closest("#theTarget:scope") is theTarget
53 PASS theTarget.closest(":scope#theTarget") is theTarget
54 PASS theTarget.closest("[webkit]:scope#theTarget") is theTarget
55 PASS theTarget.closest(":not([webkit=fast]):scope#theTarget") is null
56 PASS theTarget.closest(":scope target") is null
57 PASS theTarget.closest(":scope > target") is null
58 PASS theTarget.closest(":scope + target") is null
59 PASS theTarget.closest(":scope ~ target") is null
60 PASS theTarget.closest(":scope *") is null
61 PASS theTarget.closest(":scope > *") is null
62 PASS theTarget.closest(":scope + *") is null
63 PASS theTarget.closest(":scope ~ *") is null
64 PASS successfullyParsed is true
65
66 TEST COMPLETE
67
OLDNEW
« no previous file with comments | « LayoutTests/fast/selectors/element-closeset.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698