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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/shadow-dom/Element-interface-attachShadow-expected.txt

Issue 1685063002: Make 'mode' required parameter for Element.attachShadow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes for tests Created 4 years, 10 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 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 PASS Check the existence of Element.attachShadow 2 PASS Check the existence of Element.attachShadow
3 PASS Nodes other than Element should not have attachShadow 3 PASS Nodes other than Element should not have attachShadow
4 FAIL Element.attachShadow must throw a TypeError if mode is not "open" or "close d" assert_throws: attachShadow must throw a TypeError when mode is omitted funct ion "function () { 4 PASS Element.attachShadow must throw a TypeError if mode is not "open" or "close d"
5 document.createElement('div').attac..." did not throw
6 PASS Element.attachShadow must create an instance of ShadowRoot 5 PASS Element.attachShadow must create an instance of ShadowRoot
7 PASS Element.attachShadow must throw a InvalidStateError if the context object a lready hosts a shadow tree 6 PASS Element.attachShadow must throw a InvalidStateError if the context object a lready hosts a shadow tree
8 FAIL Element.attachShadow must throw a NotSupportedError for button, details, in put, marquee, meter, progress, select, textarea, and keygen elements assert_thro ws: Calling attachShadow({mode: "open"}) on button element must throw function " function () { 7 FAIL Element.attachShadow must throw a NotSupportedError for button, details, in put, marquee, meter, progress, select, textarea, and keygen elements assert_thro ws: Calling attachShadow({mode: "open"}) on button element must throw function " function () {
9 document.createElement(elementN..." did not throw 8 document.createElement(elementN..." did not throw
10 Harness: the test ran to completion. 9 Harness: the test ran to completion.
11 10
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698