| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |