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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/IndexedDB/interfaces.worker.js

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 unified diff | Download patch
OLDNEW
(Empty)
1 "use strict";
2
3 importScripts("/resources/testharness.js");
4 importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
5
6 var request = new XMLHttpRequest();
7 request.open("GET", "interfaces.idl");
8 request.send();
9 request.onload = function() {
10 var idlArray = new IdlArray();
11 var idls = request.responseText;
12
13 idlArray.add_untested_idls("interface WorkerGlobalScope {};");
14 idlArray.add_untested_idls("interface WorkerUtils {};");
15 idlArray.add_untested_idls("WorkerGlobalScope implements WorkerUtils;");
16 idlArray.add_untested_idls("interface Event { };");
17 idlArray.add_untested_idls("interface EventTarget { };");
18
19 // From Indexed DB:
20 idlArray.add_idls("WorkerUtils implements IDBEnvironment;");
21 idlArray.add_idls(idls);
22
23 idlArray.add_objects({
24 IDBCursor: [],
25 IDBCursorWithValue: [],
26 IDBDatabase: [],
27 IDBEnvironment: [],
28 IDBFactory: ["self.indexedDB"],
29 IDBIndex: [],
30 IDBKeyRange: ["IDBKeyRange.only(0)"],
31 IDBObjectStore: [],
32 IDBOpenDBRequest: [],
33 IDBRequest: [],
34 IDBTransaction: [],
35 IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"],
36 });
37 idlArray.test();
38 done();
39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698