OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>Form named getter</title> | 3 <title>Form named getter</title> |
4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
6 <div id=log></div> | 6 <div id=log></div> |
7 <!-- XXX Nothing tests id attributes yet. --> | 7 <!-- XXX Nothing tests id attributes yet. --> |
8 <!-- XXX Keygen. --> | |
9 <!-- XXX We also need tests for moving inputs and forms in the DOM. --> | 8 <!-- XXX We also need tests for moving inputs and forms in the DOM. --> |
10 <form> | 9 <form> |
11 <input type=button name=button> | 10 <input type=button name=button> |
12 <input type=radio name=radio value=x> | 11 <input type=radio name=radio value=x> |
13 <input type=radio name=radio value=y> | 12 <input type=radio name=radio value=y> |
14 <input type=radio name=radio value=z> | 13 <input type=radio name=radio value=z> |
15 </form> | 14 </form> |
16 | 15 |
17 <form> | 16 <form> |
18 <button name=l1></button> | 17 <button name=l1></button> |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 assert_equals(form["new-name2"], 5); | 320 assert_equals(form["new-name2"], 5); |
322 | 321 |
323 assert_throws(new TypeError(), function() { | 322 assert_throws(new TypeError(), function() { |
324 "use strict"; | 323 "use strict"; |
325 delete form["new-name2"]; | 324 delete form["new-name2"]; |
326 }); | 325 }); |
327 assert_equals(form["new-name2"], 5); | 326 assert_equals(form["new-name2"], 5); |
328 }, 'Trying to set a non-configurable expando that shadows a named property that
gets added later'); | 327 }, 'Trying to set a non-configurable expando that shadows a named property that
gets added later'); |
329 | 328 |
330 </script> | 329 </script> |
OLD | NEW |