| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- Submitted from TestTWF Paris --> | 2 <!-- Submitted from TestTWF Paris --> |
| 3 <meta charset="utf-8"> | 3 <meta charset="utf-8"> |
| 4 <title>Keypath</title> | 4 <title>Keypath</title> |
| 5 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
key-path-construct"> | 5 <link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#
key-path-construct"> |
| 6 <link rel=assert title="A key path is a DOMString that defines how to extract a
key from a value. A valid key path is either the empty string, a JavaScript iden
tifier, or multiple Javascript identifiers separated by periods (ASCII character
code 46) [ECMA-262]."> | 6 <link rel=assert title="A key path is a DOMString that defines how to extract a
key from a value. A valid key path is either the empty string, a JavaScript iden
tifier, or multiple Javascript identifiers separated by periods (ASCII character
code 46) [ECMA-262]."> |
| 7 <script src="../../../resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="../../../resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 <script src="support.js"></script> | 9 <script src="support.js"></script> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 | 12 |
| 13 var global_db = createdb_for_multiple_tests(); | 13 var global_db = createdb_for_multiple_tests(); |
| 14 | 14 |
| 15 function keypath(keypath, objects, expected_keys, desc) { | 15 function keypath(keypath, objects, expected_keys, desc) { |
| 16 var db, | 16 var db, |
| 17 t = async_test(document.title + " - " + (desc ? desc : keypath)), | 17 t = async_test(document.title + " - " + (desc ? desc : keypath)), |
| 18 | 18 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 loop_array = []; | 138 loop_array = []; |
| 139 loop_array.push(loop_array); | 139 loop_array.push(loop_array); |
| 140 keypath(loop_array, | 140 keypath(loop_array, |
| 141 [ "a", 1, ["k"] ], | 141 [ "a", 1, ["k"] ], |
| 142 [ [1], ["a"], [["k"]] ], | 142 [ [1], ["a"], [["k"]] ], |
| 143 "array loop -> stringify becomes ['']"); | 143 "array loop -> stringify becomes ['']"); |
| 144 </script> | 144 </script> |
| 145 | 145 |
| 146 <div id=log></div> | 146 <div id=log></div> |
| OLD | NEW |