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

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

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 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>IndexedDB IDL tests</title> 3 <title>IndexedDB IDL tests</title>
4 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script> 5 <script src=/resources/testharnessreport.js></script>
6 <script src=/resources/WebIDLParser.js></script> 6 <script src=/resources/WebIDLParser.js></script>
7 <script src=/resources/idlharness.js></script> 7 <script src=/resources/idlharness.js></script>
8 8
9 <h1>IndexedDB IDL tests</h1> 9 <h1>IndexedDB IDL tests</h1>
10 <div id=log></div> 10 <div id=log></div>
11 11
12 <script> 12 <script>
13 "use strict"; 13 "use strict";
14 setup(function() { 14 setup(function() {
15 var idlArray = new IdlArray(); 15 var idlArray = new IdlArray();
16 16
17 var request = new XMLHttpRequest(); 17 var request = new XMLHttpRequest();
18 request.open("GET", "interfaces.idl"); 18 request.open("GET", "interfaces.idl");
19 request.send(); 19 request.send();
20 request.onload = function() { 20 request.onload = function() {
21 var idls = request.responseText; 21 var idls = request.responseText;
22 22
23 idlArray.add_untested_idls("[PrimaryGlobal] interface Window { };"); 23 idlArray.add_untested_idls("[PrimaryGlobal] interface Window { };");
24 idlArray.add_untested_idls("interface Event { };"); 24 idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface Event { };") ;
25 idlArray.add_untested_idls("interface EventTarget { };"); 25 idlArray.add_untested_idls("[Exposed=(Window,Worker)] interface EventTarget { };");
26 26
27 // From Indexed DB: 27 // From Indexed DB:
28 idlArray.add_idls(idls); 28 idlArray.add_idls(idls);
29 idlArray.add_idls("Window implements IDBEnvironment;"); 29 idlArray.add_idls("Window implements IDBEnvironment;");
30 30
31 idlArray.add_objects({ 31 idlArray.add_objects({
32 IDBCursor: [], 32 IDBCursor: [],
33 IDBCursorWithValue: [], 33 IDBCursorWithValue: [],
34 IDBDatabase: [], 34 IDBDatabase: [],
35 IDBEnvironment: [], 35 IDBEnvironment: [],
36 IDBFactory: ["window.indexedDB"], 36 IDBFactory: ["window.indexedDB"],
37 IDBIndex: [], 37 IDBIndex: [],
38 IDBKeyRange: ["IDBKeyRange.only(0)"], 38 IDBKeyRange: ["IDBKeyRange.only(0)"],
39 IDBObjectStore: [], 39 IDBObjectStore: [],
40 IDBOpenDBRequest: [], 40 IDBOpenDBRequest: [],
41 IDBRequest: [], 41 IDBRequest: [],
42 IDBTransaction: [], 42 IDBTransaction: [],
43 IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"], 43 IDBVersionChangeEvent: ["new IDBVersionChangeEvent('foo')"],
44 }); 44 });
45 45
46 idlArray.test(); 46 idlArray.test();
47 done(); 47 done();
48 }; 48 };
49 }, {explicit_done: true}); 49 }, {explicit_done: true});
50 </script> 50 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/interfaces.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698