| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>Node assorted property tests</title> | 2 <title>Node assorted property tests</title> |
| 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> | 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> |
| 4 <meta charset=utf-8> | 4 <meta charset=utf-8> |
| 5 <div id=log></div> | 5 <div id=log></div> |
| 6 <script src=../../../../resources/testharness.js></script> | 6 <script src=/resources/testharness.js></script> |
| 7 <script src=../../../../resources/testharnessreport.js></script> | 7 <script src=/resources/testharnessreport.js></script> |
| 8 <script src=../common.js></script> | 8 <script src=../common.js></script> |
| 9 <script> | 9 <script> |
| 10 "use strict"; | 10 "use strict"; |
| 11 /** | 11 /** |
| 12 * First we define a data structure to tell us what tests to run. The keys | 12 * First we define a data structure to tell us what tests to run. The keys |
| 13 * will be eval()ed, and are mostly global variables defined in common.js. The | 13 * will be eval()ed, and are mostly global variables defined in common.js. The |
| 14 * values are objects, which maps properties to expected values. So | 14 * values are objects, which maps properties to expected values. So |
| 15 * | 15 * |
| 16 * foo: { | 16 * foo: { |
| 17 * bar: "baz", | 17 * bar: "baz", |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 // Finally, we test! | 679 // Finally, we test! |
| 680 for (var prop in expected[node]) { | 680 for (var prop in expected[node]) { |
| 681 test(function() { | 681 test(function() { |
| 682 assert_equals(eval(node + "." + prop), expected[node][prop]); | 682 assert_equals(eval(node + "." + prop), expected[node][prop]); |
| 683 }, node + "." + prop); | 683 }, node + "." + prop); |
| 684 } | 684 } |
| 685 } | 685 } |
| 686 | 686 |
| 687 testDiv.parentNode.removeChild(testDiv); | 687 testDiv.parentNode.removeChild(testDiv); |
| 688 </script> | 688 </script> |
| OLD | NEW |