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

Side by Side Diff: LayoutTests/fast/dom/shadow/getelementbyid-shadow-expected.txt

Issue 799543002: Let ShadowRoot.getElementById() fall back to DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Tests to ensure ShadowRoot.getElementById works after complex DOM manipulation. 1 Tests to ensure ShadowRoot.getElementById works after complex DOM manipulation.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS document.getElementById("A") is A 6 PASS document.getElementById("A") is A
7 PASS shadowRootA.getElementById() threw exception TypeError: Failed to execute ' getElementById' on 'DocumentFragment': 1 argument required, but only 0 present..
7 PASS shadowRootA.getElementById("B") is B 8 PASS shadowRootA.getElementById("B") is B
8 PASS shadowRootB.getElementById("C") is C 9 PASS shadowRootB.getElementById("C") is C
9 PASS shadowRootC.getElementById("D") is D 10 PASS shadowRootC.getElementById("D") is D
10 11
11 Remove C from shadowRootB 12 Remove C from shadowRootB
12 PASS document.getElementById("A") is A 13 PASS document.getElementById("A") is A
13 PASS shadowRootA.getElementById("B") is B 14 PASS shadowRootA.getElementById("B") is B
14 PASS shadowRootB.getElementById("C") is null 15 PASS shadowRootB.getElementById("C") is null
15 PASS shadowRootC.getElementById("D") is D 16 PASS shadowRootC.getElementById("D") is D
16 17
(...skipping 11 matching lines...) Expand all
28 29
29 Remove D from shadowRootC 30 Remove D from shadowRootC
30 PASS document.getElementById("A") is null 31 PASS document.getElementById("A") is null
31 PASS shadowRootA.getElementById("B") is B 32 PASS shadowRootA.getElementById("B") is B
32 PASS shadowRootB.getElementById("C") is null 33 PASS shadowRootB.getElementById("C") is null
33 PASS shadowRootC.getElementById("D") is null 34 PASS shadowRootC.getElementById("D") is null
34 PASS successfullyParsed is true 35 PASS successfullyParsed is true
35 36
36 TEST COMPLETE 37 TEST COMPLETE
37 38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698