Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/deleteDatabase-event.html

Issue 2667403003: Upstream a couple of IndexedDB layout tests to WPT. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/indexeddb/clone-before-keypath-eval.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/storage/indexeddb/deleteDatabase-event.html
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/deleteDatabase-event.html b/third_party/WebKit/LayoutTests/storage/indexeddb/deleteDatabase-event.html
deleted file mode 100644
index 0cf1659192f1fbbc83b0b805ff0a5b78cda1190f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/deleteDatabase-event.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<title>IndexedDB: Verify deleteDatabase success event</title>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script>
-(function() {
- var t = async_test('deleteDatabase success event type, existing DB');
- t.step(function() {
- var dbName = 'db' + location.pathname;
- var openRequest = indexedDB.open(dbName, 9);
- openRequest.onsuccess = t.step_func(function(e) {
- var db = openRequest.result;
- db.close();
-
- var deleteRequest = indexedDB.deleteDatabase(dbName);
- deleteRequest.onsuccess = t.step_func(function(e) {
- assert_equals(deleteRequest.result, undefined,
- '...the implementation must set the result of the request to undefined...');
- assert_true(e instanceof IDBVersionChangeEvent,
- 'The event must implement the IDBVersionChangeEvent interface ...');
- assert_equals(e.oldVersion, 9,
- 'and have oldVersion set to database version...');
- assert_equals(e.newVersion, null,
- 'and have the newVersion property set to null.');
- t.done();
- });
- });
- });
-}());
-
-(function() {
- var t = async_test('deleteDatabase success event, non-existent DB');
- t.step(function() {
-
- var dbName = 'db' + location.pathname + '-does-not-exist';
- var deleteRequest = indexedDB.deleteDatabase(dbName);
- deleteRequest.onsuccess = t.step_func(function(e) {
- assert_equals(deleteRequest.result, undefined,
- '...the implementation must set the result of the request to undefined...');
- assert_true(e instanceof IDBVersionChangeEvent,
- 'The event must implement the IDBVersionChangeEvent interface ...');
- assert_equals(e.oldVersion, 0,
- 'and have oldVersion set to database version...');
- assert_equals(e.newVersion, null,
- 'and have the newVersion property set to null.');
- t.done();
- });
- });
-}());
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/storage/indexeddb/clone-before-keypath-eval.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698