diff options
Diffstat (limited to 'testing/web-platform/tests/IndexedDB/idbfactory_open2.htm')
-rw-r--r-- | testing/web-platform/tests/IndexedDB/idbfactory_open2.htm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm b/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm new file mode 100644 index 0000000000..00ebbd3d0f --- /dev/null +++ b/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<title>IDBFactory.open() - database 'name' and 'version' are correctly set</title> +<link rel="author" title="Microsoft" href="http://www.microsoft.com"> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script src=resources/support.js></script> + +<script> + var database_name = document.location + '-database_name'; + var open_rq = createdb(async_test(), database_name, 13); + + open_rq.onupgradeneeded = function(e) {}; + open_rq.onsuccess = function(e) { + var db = e.target.result; + assert_equals(db.name, database_name, 'db.name'); + assert_equals(db.version, 13, 'db.version'); + this.done(); + } +</script> + +<div id=log></div> |