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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/interfaces.worker.js

Issue 2477133002: Import wpt@306326cfe973b6c7019c50879ad03b02825c7539 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years, 1 month 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
1 "use strict"; 1 "use strict";
2 2
3 importScripts("/resources/testharness.js"); 3 importScripts("/resources/testharness.js");
4 importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js"); 4 importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
5 5
6 var request = new XMLHttpRequest(); 6 var request = new XMLHttpRequest();
7 request.open("GET", "interfaces.idl"); 7 request.open("GET", "interfaces.idl");
8 request.send(); 8 request.send();
9 request.onload = function() { 9 request.onload = function() {
10 var idlArray = new IdlArray(); 10 var idlArray = new IdlArray();
11 var idls = request.responseText; 11 var idls = request.responseText;
12 12
13 idlArray.add_untested_idls("interface WorkerGlobalScope {};"); 13 idlArray.add_untested_idls("[Exposed=Worker] interface WorkerGlobalScope {};") ;
14 idlArray.add_untested_idls("interface Event { };"); 14 idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface Event { };");
15 idlArray.add_untested_idls("interface EventTarget { };"); 15 idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface EventTarget { };");
16 16
17 // From Indexed DB: 17 // From Indexed DB:
18 idlArray.add_idls("WorkerGlobalScope implements IDBEnvironment;"); 18 idlArray.add_idls("WorkerGlobalScope implements IDBEnvironment;");
19 idlArray.add_idls(idls); 19 idlArray.add_idls(idls);
20 20
21 idlArray.add_objects({ 21 idlArray.add_objects({
22 IDBCursor: [], 22 IDBCursor: [],
23 IDBCursorWithValue: [], 23 IDBCursorWithValue: [],
24 IDBDatabase: [], 24 IDBDatabase: [],
25 IDBEnvironment: [], 25 IDBEnvironment: [],
26 IDBFactory: ["self.indexedDB"], 26 IDBFactory: ["self.indexedDB"],
27 IDBIndex: [], 27 IDBIndex: [],
28 IDBKeyRange: ["IDBKeyRange.only(0)"], 28 IDBKeyRange: ["IDBKeyRange.only(0)"],
29 IDBObjectStore: [], 29 IDBObjectStore: [],
30 IDBOpenDBRequest: [], 30 IDBOpenDBRequest: [],
31 IDBRequest: [], 31 IDBRequest: [],
32 IDBTransaction: [], 32 IDBTransaction: [],
33 IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"], 33 IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"],
34 }); 34 });
35 idlArray.test(); 35 idlArray.test();
36 done(); 36 done();
37 }; 37 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698