Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: LayoutTests/imported/web-platform-tests/IndexedDB/keypath.htm

Issue 1295773004: update-w3c-deps import using blink c936ac9d274f959a4b5908db6835bcd612fb1a9e: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 23 matching lines...) Expand all
34 .openCursor(); 34 .openCursor();
35 35
36 rq.onsuccess = t.step_func(function(e) { 36 rq.onsuccess = t.step_func(function(e) {
37 var cursor = e.target.result; 37 var cursor = e.target.result;
38 38
39 if (cursor) { 39 if (cursor) {
40 actual_keys.push(cursor.key.valueOf()); 40 actual_keys.push(cursor.key.valueOf());
41 cursor.continue(); 41 cursor.continue();
42 } 42 }
43 else { 43 else {
44 assert_equals(actual_keys.length, expected_keys.length, "arr ay length"); 44 assert_key_equals(actual_keys, expected_keys, "keyorder arra y");
45 assert_object_equals(actual_keys, expected_keys, "keyorder a rray");
46
47 t.done(); 45 t.done();
48 } 46 }
49 }); 47 });
50 }; 48 };
51 } 49 }
52 50
53 keypath('my.key', 51 keypath('my.key',
54 [ { my: { key: 10 } } ], 52 [ { my: { key: 10 } } ],
55 [ 10 ]); 53 [ 10 ]);
56 54
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 137
140 loop_array = []; 138 loop_array = [];
141 loop_array.push(loop_array); 139 loop_array.push(loop_array);
142 keypath(loop_array, 140 keypath(loop_array,
143 [ "a", 1, ["k"] ], 141 [ "a", 1, ["k"] ],
144 [ [1], ["a"], [["k"]] ], 142 [ [1], ["a"], [["k"]] ],
145 "array loop -> stringify becomes ['']"); 143 "array loop -> stringify becomes ['']");
146 </script> 144 </script>
147 145
148 <div id=log></div> 146 <div id=log></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698