| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>IDBObjectStoreParameters</title> | 3 <title>IDBObjectStoreParameters</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> |
| 11 function optionalParameters(desc, params) { | 11 function optionalParameters(desc, params) { |
| 12 var t = async_test(document.title + " - " + desc); | 12 var t = async_test(document.title + " - " + desc); |
| 13 | 13 |
| 14 createdb(t).onupgradeneeded = function(e) { | 14 createdb(t).onupgradeneeded = function(e) { |
| 15 e.target.result.createObjectStore("store", params); | 15 e.target.result.createObjectStore("store", params); |
| 16 | 16 |
| 17 this.done(); | 17 this.done(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 optionalParameters("keyPath empty", {keyPath: ""}); | 31 optionalParameters("keyPath empty", {keyPath: ""}); |
| 32 optionalParameters("keyPath array", {keyPath: ["a","b"]}); | 32 optionalParameters("keyPath array", {keyPath: ["a","b"]}); |
| 33 optionalParameters("keyPath string", {keyPath: "abc"}); | 33 optionalParameters("keyPath string", {keyPath: "abc"}); |
| 34 optionalParameters("keyPath null", {keyPath: null}); | 34 optionalParameters("keyPath null", {keyPath: null}); |
| 35 optionalParameters("keyPath undefined", {keyPath: undefined}); | 35 optionalParameters("keyPath undefined", {keyPath: undefined}); |
| 36 | 36 |
| 37 </script> | 37 </script> |
| 38 | 38 |
| 39 <div id="log"></div> | 39 <div id="log"></div> |
| OLD | NEW |