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

Side by Side Diff: LayoutTests/imported/web-platform-tests/IndexedDB/idbobjectstore_createIndex8-valid_keys.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 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>IDBObjectStore.createIndex() - index can be valid keys</title> 3 <title>IDBObjectStore.createIndex() - index can be valid keys</title>
4 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> 4 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal">
5 <meta name=timeout content=long> 5 <meta name=timeout content=long>
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="support.js"></script> 8 <script src="support.js"></script>
9 9
10 <script> 10 <script>
(...skipping 20 matching lines...) Expand all
31 idx.get(now).onsuccess = t.step_func(function(e) { 31 idx.get(now).onsuccess = t.step_func(function(e) {
32 assert_equals(e.target.result.key, 'now', 'key'); 32 assert_equals(e.target.result.key, 'now', 'key');
33 assert_equals(e.target.result.i.getTime(), now.getTime(), 'getTime') ; 33 assert_equals(e.target.result.i.getTime(), now.getTime(), 'getTime') ;
34 }); 34 });
35 idx.get(mar18).onsuccess = t.step_func(function(e) { 35 idx.get(mar18).onsuccess = t.step_func(function(e) {
36 assert_equals(e.target.result.key, 'mar18', 'key'); 36 assert_equals(e.target.result.key, 'mar18', 'key');
37 assert_equals(e.target.result.i.getTime(), mar18.getTime(), 'getTime '); 37 assert_equals(e.target.result.i.getTime(), mar18.getTime(), 'getTime ');
38 }); 38 });
39 idx.get(ar).onsuccess = t.step_func(function(e) { 39 idx.get(ar).onsuccess = t.step_func(function(e) {
40 assert_equals(e.target.result.key, 'array', 'key'); 40 assert_equals(e.target.result.key, 'array', 'key');
41 assert_object_equals(e.target.result.i, ar, 'array is the same'); 41 assert_array_equals(e.target.result.i, ar, 'array is the same');
42 }); 42 });
43 idx.get(num).onsuccess = t.step_func(function(e) { 43 idx.get(num).onsuccess = t.step_func(function(e) {
44 assert_equals(e.target.result.key, 'number', 'key'); 44 assert_equals(e.target.result.key, 'number', 'key');
45 assert_equals(e.target.result.i, num, 'number is the same'); 45 assert_equals(e.target.result.i, num, 'number is the same');
46 }); 46 });
47 } 47 }
48 48
49 open_rq.onsuccess = function() { 49 open_rq.onsuccess = function() {
50 t.done(); 50 t.done();
51 } 51 }
52 </script> 52 </script>
53 53
54 <div id="log"></div> 54 <div id="log"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698