| OLD | NEW |
| 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 [ "img", "isMap" ], | 10 [ "img", "isMap" ], |
| 11 [ "input", "autofocus" ], | 11 [ "input", "autofocus" ], |
| 12 [ "input", "defaultChecked", "checked" ], | 12 [ "input", "defaultChecked", "checked" ], |
| 13 [ "input", "disabled" ], | 13 [ "input", "disabled" ], |
| 14 [ "input", "formNoValidate" ], | 14 [ "input", "formNoValidate" ], |
| 15 [ "input", "multiple" ], | 15 [ "input", "multiple" ], |
| 16 [ "input", "readOnly" ], | 16 [ "input", "readOnly" ], |
| 17 [ "input", "required" ], | 17 [ "input", "required" ], |
| 18 [ "link", "disabled" ], |
| 18 [ "menu", "compact" ], | 19 [ "menu", "compact" ], |
| 19 [ "object", "declare" ], | 20 [ "object", "declare" ], |
| 20 [ "ol", "compact" ], | 21 [ "ol", "compact" ], |
| 21 [ "option", "defaultSelected", "selected" ], | 22 [ "option", "defaultSelected", "selected" ], |
| 22 [ "pre", "wrap" ], | 23 [ "pre", "wrap" ], |
| 23 [ "script", "defer" ], | 24 [ "script", "defer" ], |
| 24 [ "select", "multiple" ], | 25 [ "select", "multiple" ], |
| 25 [ "td", "noWrap" ], | 26 [ "td", "noWrap" ], |
| 26 [ "ul", "compact" ], | 27 [ "ul", "compact" ], |
| 27 [ "video", "autoplay" ], | 28 [ "video", "autoplay" ], |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 + "e.getAttribute('" + contentAttribute + "')", | 53 + "e.getAttribute('" + contentAttribute + "')", |
| 53 "null"); | 54 "null"); |
| 54 shouldBe("e = make('" + tag + "'); " | 55 shouldBe("e = make('" + tag + "'); " |
| 55 + "e.setAttribute('" + contentAttribute + "', 'x'); " | 56 + "e.setAttribute('" + contentAttribute + "', 'x'); " |
| 56 + "e." + reflectingAttribute + " = true; " | 57 + "e." + reflectingAttribute + " = true; " |
| 57 + "e.getAttribute('" + contentAttribute + "')", | 58 + "e.getAttribute('" + contentAttribute + "')", |
| 58 "''"); | 59 "''"); |
| 59 } | 60 } |
| 60 | 61 |
| 61 var successfullyParsed = true; | 62 var successfullyParsed = true; |
| OLD | NEW |