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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbtransaction_objectStoreNames.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>IndexedDB: IDBTransaction.objectStoreNames attribute</title> 2 <title>IndexedDB: IDBTransaction.objectStoreNames attribute</title>
3 <script src="../../../resources/testharness.js"></script> 3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script> 4 <script src="../../../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 6
7 function indexeddb_test(upgrade_func, open_func, description) { 7 function indexeddb_test(upgrade_func, open_func, description) {
8 async_test(function(t) { 8 async_test(function(t) {
9 var dbname = document.location + '-' + t.name; 9 var dbname = document.location + '-' + t.name;
10 var del = indexedDB.deleteDatabase(dbname); 10 var del = indexedDB.deleteDatabase(dbname);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 assert_array_equals(tx.objectStoreNames, unusual_names, 173 assert_array_equals(tx.objectStoreNames, unusual_names,
174 'transaction should have names sorted'); 174 'transaction should have names sorted');
175 }, function(t, db) { 175 }, function(t, db) {
176 var tx = db.transaction(unusual_names.slice().reverse().concat(unusual_names )); 176 var tx = db.transaction(unusual_names.slice().reverse().concat(unusual_names ));
177 assert_array_equals(tx.objectStoreNames, unusual_names, 177 assert_array_equals(tx.objectStoreNames, unusual_names,
178 'transaction should have names sorted with no duplicates'); 178 'transaction should have names sorted with no duplicates');
179 t.done(); 179 t.done();
180 }, 'IDBTransaction.objectStoreNames - unusual names'); 180 }, 'IDBTransaction.objectStoreNames - unusual names');
181 181
182 </script> 182 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698