Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | <!-- |
michael@0 | 2 | Any copyright is dedicated to the Public Domain. |
michael@0 | 3 | http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 4 | --> |
michael@0 | 5 | <html> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Indexed Database Property Test</title> |
michael@0 | 8 | |
michael@0 | 9 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 11 | |
michael@0 | 12 | <script type="text/javascript;version=1.7"> |
michael@0 | 13 | function testSteps() |
michael@0 | 14 | { |
michael@0 | 15 | const name = window.location.pathname; |
michael@0 | 16 | |
michael@0 | 17 | // Test for IDBKeyRange and indexedDB availability in content windows. |
michael@0 | 18 | let keyRange = IDBKeyRange.only(42); |
michael@0 | 19 | ok(keyRange, "Got keyRange"); |
michael@0 | 20 | |
michael@0 | 21 | let request = indexedDB.open(name, 1); |
michael@0 | 22 | request.onerror = errorHandler; |
michael@0 | 23 | request.onsuccess = grabEventAndContinueHandler; |
michael@0 | 24 | let event = yield undefined; |
michael@0 | 25 | |
michael@0 | 26 | let db = event.target.result; |
michael@0 | 27 | ok(db, "Got database"); |
michael@0 | 28 | |
michael@0 | 29 | finishTest(); |
michael@0 | 30 | yield undefined; |
michael@0 | 31 | } |
michael@0 | 32 | </script> |
michael@0 | 33 | <script type="text/javascript;version=1.7" src="helpers.js"></script> |
michael@0 | 34 | </head> |
michael@0 | 35 | |
michael@0 | 36 | <body onload="runTest();"></body> |
michael@0 | 37 | |
michael@0 | 38 | </html> |