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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/create-shadow-root-with-parameter-expected.txt

Issue 1408443003: Add Element.attachShadow under the ShadowDOMV1 runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite a test Created 5 years, 2 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 Create open shadow root. 1 Attach open shadow root.
2 PASS [object ShadowRoot] is non-null. 2 PASS [object ShadowRoot] is non-null.
3 Create closed shadow root. 3 Attach closed shadow root.
4 PASS host2.createShadowRoot({mode: 'closed'}) is non-null. 4 PASS host2.createShadowRoot({mode: 'closed'}) is non-null.
5 Create shadow root with empty parameter. 5 Create shadow root with empty parameter.
6 PASS [object ShadowRoot] is non-null. 6 PASS [object ShadowRoot] is non-null.
7 Create shadow root whose mode is neither open nor closed. 7 Attach shadow root whose mode is neither open nor closed.
8 PASS host4.createShadowRoot({mode: 'illegal'}) threw exception TypeError: Failed to execute 'createShadowRoot' on 'Element': The provided value 'illegal' is not a valid enum value of type ShadowRootMode.. 8 PASS host4.attachShadow({mode: 'illegal'}) threw exception TypeError: Failed to execute 'attachShadow' on 'Element': The provided value 'illegal' is not a valid enum value of type ShadowRootMode..
9 Create open shadow root with shadow-dom.js utility. 9 Attach open shadow root with shadow-dom.js utility.
10 PASS [object ShadowRoot] is non-null. 10 PASS [object ShadowRoot] is non-null.
11 Create shadow root on already shadowed host will raise InvalidStateError excepti on. 11 Attach shadow root on already shadowed host will raise InvalidStateError excepti on.
12 PASS host1.createShadowRoot({mode: 'open'}) threw exception InvalidStateError: F ailed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.. 12 PASS host1.attachShadow({mode: 'open'}) threw exception InvalidStateError: Faile d to execute 'attachShadow' on 'Element': Shadow root cannot be created on a hos t which already hosts a shadow tree..
13 PASS successfullyParsed is true 13 PASS successfullyParsed is true
14 14
15 TEST COMPLETE 15 TEST COMPLETE
16 16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698