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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/idbcursor-reused.htm

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/idbcursor-reused.htm
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/idbcursor-reused.htm b/third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/idbcursor-reused.htm
deleted file mode 100644
index 7f9c8bf4e47e399f0ab2e88f1cd37c7883c14591..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/idbcursor-reused.htm
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<title>IDBCursor is reused</title>
-<link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal">
-<meta rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBCursor-continue-void-any-key">
-<meta rel=assert title="Otherwise this method runs the steps for asynchronously executing a request. However, the steps are slightly modified such that instead of creating a new IDBRequest, it reuses the request originally created when this cursor was created. The done flag on the request is set to false before the request is returned. The steps are run with the cursor's source as source and the steps for iterating a cursor as operation, using this cursor as cursor and the key parameter as key.">
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script src="support.js"></script>
-
-<script>
-
- var db
- var open_rq = createdb(async_test())
-
- open_rq.onupgradeneeded = function(e) {
- db = e.target.result
- var os = db.createObjectStore("test")
-
- os.add("data", "k")
- os.add("data2", "k2")
- }
-
- open_rq.onsuccess = function(e) {
- var cursor
- var count = 0
- var rq = db.transaction("test").objectStore("test").openCursor()
-
- rq.onsuccess = this.step_func(function(e)
- {
- switch(count)
- {
- case 0:
- cursor = e.target.result
-
- assert_equals(cursor.value, "data", "prequisite cursor.value")
- cursor.custom_cursor_value = 1
- e.target.custom_request_value = 2
-
- cursor.continue()
- break
-
- case 1:
- assert_equals(cursor.value, "data2", "prequisite cursor.value")
- assert_equals(cursor.custom_cursor_value, 1, "custom cursor value")
- assert_equals(e.target.custom_request_value, 2, "custom request value")
-
- cursor.advance(1)
- break
-
- case 2:
- assert_false(!!e.target.result, "got cursor")
- assert_equals(cursor.custom_cursor_value, 1, "custom cursor value")
- assert_equals(e.target.custom_request_value, 2, "custom request value")
- break
- }
- count++
- })
-
- rq.transaction.oncomplete = this.step_func(function() {
- assert_equals(count, 3, "cursor callback runs")
- assert_equals(rq.custom_request_value, 2, "variable placed on old IDBRequest")
- assert_equals(cursor.custom_cursor_value, 1, "custom cursor value (transaction.complete)")
- this.done()
- })
- }
-
-</script>
-
-<div id="log"></div>

Powered by Google App Engine
This is Rietveld 408576698