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

Side by Side Diff: LayoutTests/fast/dom/script-tests/boolean-attribute-reflection.js

Issue 243403006: Implement contextmenu attribute with basic support of <menu> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect HTMLMenuElement as per spec Created 6 years, 4 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 description("Test reflecting boolean attributes."); 1 description("Test reflecting boolean attributes.");
2 2
3 var attributes = [ 3 var attributes = [
4 [ "area", "noHref" ], 4 [ "area", "noHref" ],
5 [ "dir", "compact" ], 5 [ "dir", "compact" ],
6 [ "dl", "compact" ], 6 [ "dl", "compact" ],
7 [ "form", "noValidate" ], 7 [ "form", "noValidate" ],
8 [ "frame", "noResize" ], 8 [ "frame", "noResize" ],
9 [ "hr", "noShade" ], 9 [ "hr", "noShade" ],
10 [ "iframe", "allowFullscreen" ], 10 [ "iframe", "allowFullscreen" ],
11 [ "img", "isMap" ], 11 [ "img", "isMap" ],
12 [ "input", "autofocus" ], 12 [ "input", "autofocus" ],
13 [ "input", "defaultChecked", "checked" ], 13 [ "input", "defaultChecked", "checked" ],
14 [ "input", "disabled" ], 14 [ "input", "disabled" ],
15 [ "input", "formNoValidate" ], 15 [ "input", "formNoValidate" ],
16 [ "input", "multiple" ], 16 [ "input", "multiple" ],
17 [ "input", "readOnly" ], 17 [ "input", "readOnly" ],
18 [ "input", "required" ], 18 [ "input", "required" ],
19 [ "link", "disabled" ], 19 [ "link", "disabled" ],
20 [ "menu", "compact" ], 20 [ "menu", "compact" ],
21 [ "menuitem", "checked" ],
22 [ "menuitem", "default" ],
23 [ "menuitem", "disabled" ],
21 [ "object", "declare" ], 24 [ "object", "declare" ],
22 [ "ol", "compact" ], 25 [ "ol", "compact" ],
23 [ "option", "defaultSelected", "selected" ], 26 [ "option", "defaultSelected", "selected" ],
24 [ "script", "defer" ], 27 [ "script", "defer" ],
25 [ "select", "multiple" ], 28 [ "select", "multiple" ],
26 [ "td", "noWrap" ], 29 [ "td", "noWrap" ],
27 [ "ul", "compact" ], 30 [ "ul", "compact" ],
28 [ "video", "autoplay" ], 31 [ "video", "autoplay" ],
29 [ "video", "controls" ], 32 [ "video", "controls" ],
30 [ "video", "loop" ], 33 [ "video", "loop" ],
(...skipping 20 matching lines...) Expand all
51 + "e.setAttribute('" + contentAttribute + "', 'x'); " 54 + "e.setAttribute('" + contentAttribute + "', 'x'); "
52 + "e." + reflectingAttribute + " = false; " 55 + "e." + reflectingAttribute + " = false; "
53 + "e.getAttribute('" + contentAttribute + "')", 56 + "e.getAttribute('" + contentAttribute + "')",
54 "null"); 57 "null");
55 shouldBe("e = make('" + tag + "'); " 58 shouldBe("e = make('" + tag + "'); "
56 + "e.setAttribute('" + contentAttribute + "', 'x'); " 59 + "e.setAttribute('" + contentAttribute + "', 'x'); "
57 + "e." + reflectingAttribute + " = true; " 60 + "e." + reflectingAttribute + " = true; "
58 + "e.getAttribute('" + contentAttribute + "')", 61 + "e.getAttribute('" + contentAttribute + "')",
59 "''"); 62 "''");
60 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698