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

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

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

Powered by Google App Engine
This is Rietveld 408576698