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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/IndexedDB/interleaved-overlapping-cursors.html

Issue 2803563002: Revert of More thorough overlapping cursor tests. (Closed)
Patch Set: Created 3 years, 8 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/external/wpt/IndexedDB/interleaved-overlapping-cursors.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/interleaved-overlapping-cursors.html b/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/interleaved-overlapping-cursors.html
deleted file mode 100644
index 57147e1789ca435d866ed25589781a2a67782359..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/interleaved-overlapping-cursors.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!doctype html>
-<meta charset="utf-8">
-<meta name="timeout" content="long">
-<title>IndexedDB: Interleaved iteration of multiple cursors over the same data</title>
-<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="support-promises.js"></script>
-<script src="interleaved-cursors-support.js"></script>
-<script>
-'use strict';
-
-// Number of objects that each iterator goes over.
-const itemCount = 8;
-
-// Ratio of small objects to large objects.
-const largeObjectRatio = 5;
-
-function objectKey(cursorIndex, itemIndex) {
- const itemString = itemIndex.toString().padStart(5, '0');
- return `key-${itemString}`;
-}
-
-function objectValue(cursorIndex, itemIndex) {
- if ((itemCount + itemIndex) % largeObjectRatio === 0)
- return largeObjectValue(0, itemIndex);
- return ['small', itemIndex];
-}
-
-for (let cursorCount of [1, 10, 100, 1000]) {
- promise_test(testCase => {
- return createDatabase(testCase, (database, transaction) => {
- const store = database.createObjectStore('cache', { keyPath: 'key' });
- }).then(database => {
- return populateTestStore(testCase, database, 1).then(() => database);
- }).then(database => {
- database.close();
- }).then(() => {
- return openDatabase(testCase);
- }).then(database => {
- const transaction = database.transaction('cache', 'readonly');
- transaction.onabort = () => { reject(transaction.error); };
-
- const store = transaction.objectStore('cache');
- return interleaveCursors(testCase, store, cursorCount, itemCount).then(
- () => database);
- }).then(database => {
- database.close();
- });
- }, `${cursorCount} cursors`);
-}
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698