OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
3 <title>IDBIndex.getKey() - returns the record's primary key </title> | 3 <title>IDBIndex.getKey() - returns the record's primary key </title> |
4 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> | 4 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> |
5 <script src="../../../resources/testharness.js"></script> | 5 <script src="../../../resources/testharness.js"></script> |
6 <script src="../../../resources/testharnessreport.js"></script> | 6 <script src="../../../resources/testharnessreport.js"></script> |
7 <script src="support.js"></script> | 7 <script src="support.js"></script> |
8 | 8 |
9 <script> | 9 <script> |
10 var db, | 10 var db, |
(...skipping 18 matching lines...) Expand all Loading... |
29 rq = rq.getKey("data"); | 29 rq = rq.getKey("data"); |
30 | 30 |
31 rq.onsuccess = t.step_func(function(e) { | 31 rq.onsuccess = t.step_func(function(e) { |
32 assert_equals(e.target.result, record.key); | 32 assert_equals(e.target.result, record.key); |
33 t.done(); | 33 t.done(); |
34 }); | 34 }); |
35 }; | 35 }; |
36 </script> | 36 </script> |
37 | 37 |
38 <div id="log"></div> | 38 <div id="log"></div> |
OLD | NEW |