| 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 [ "iframe", "allowFullscreen" ], |
| 10 [ "img", "isMap" ], | 11 [ "img", "isMap" ], |
| 11 [ "input", "autofocus" ], | 12 [ "input", "autofocus" ], |
| 12 [ "input", "defaultChecked", "checked" ], | 13 [ "input", "defaultChecked", "checked" ], |
| 13 [ "input", "disabled" ], | 14 [ "input", "disabled" ], |
| 14 [ "input", "formNoValidate" ], | 15 [ "input", "formNoValidate" ], |
| 15 [ "input", "multiple" ], | 16 [ "input", "multiple" ], |
| 16 [ "input", "readOnly" ], | 17 [ "input", "readOnly" ], |
| 17 [ "input", "required" ], | 18 [ "input", "required" ], |
| 18 [ "link", "disabled" ], | 19 [ "link", "disabled" ], |
| 19 [ "menu", "compact" ], | 20 [ "menu", "compact" ], |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 + "e.setAttribute('" + contentAttribute + "', 'x'); " | 52 + "e.setAttribute('" + contentAttribute + "', 'x'); " |
| 52 + "e." + reflectingAttribute + " = false; " | 53 + "e." + reflectingAttribute + " = false; " |
| 53 + "e.getAttribute('" + contentAttribute + "')", | 54 + "e.getAttribute('" + contentAttribute + "')", |
| 54 "null"); | 55 "null"); |
| 55 shouldBe("e = make('" + tag + "'); " | 56 shouldBe("e = make('" + tag + "'); " |
| 56 + "e.setAttribute('" + contentAttribute + "', 'x'); " | 57 + "e.setAttribute('" + contentAttribute + "', 'x'); " |
| 57 + "e." + reflectingAttribute + " = true; " | 58 + "e." + reflectingAttribute + " = true; " |
| 58 + "e.getAttribute('" + contentAttribute + "')", | 59 + "e.getAttribute('" + contentAttribute + "')", |
| 59 "''"); | 60 "''"); |
| 60 } | 61 } |
| OLD | NEW |