Skip to content

Commit

Permalink
fixup! IndexedDB: Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
odinho committed Mar 27, 2014
1 parent 159257b commit 765c68f
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 124 deletions.
2 changes: 1 addition & 1 deletion IndexedDB/cursor-overloads.htm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
checkCursorDirection("store.openCursor(IDBKeyRange.only(0), 'nextunique')", "nextunique");
checkCursorDirection("store.openCursor(IDBKeyRange.only(0), 'prev')", "prev");
checkCursorDirection("store.openCursor(IDBKeyRange.only(0), 'prevunique')", "prevunique");

checkCursorDirection("index.openCursor()", "next");
checkCursorDirection("index.openCursor(0)", "next");
checkCursorDirection("index.openCursor(0, 'next')", "next");
Expand Down
8 changes: 4 additions & 4 deletions IndexedDB/idbdatabase_close.htm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<head>
<title>IDBDatabase.close() - unblock the version change transaction created by an open database request</title>
<script type="text/javascript" src="support.js"></script>
<script src="/resources/testharness.js"></script>
Expand All @@ -10,7 +10,7 @@
var bBlockEventFired = false;
var bUpgradeNeededEventFired = false;
var t = async_test();

function RunTest() {
var rqOpen = window.indexedDB.open(databaseName, databaseVersion);
rqOpen.onsuccess = t.step_func( function(event) {
Expand All @@ -31,9 +31,9 @@
});
});
}

add_completion_callback(function() { if(db) db.close(); });

setup(function() {
var rqDelete = window.indexedDB.deleteDatabase(databaseName);
rqDelete.onsuccess = t.step_func( RunTest );
Expand Down
10 changes: 5 additions & 5 deletions IndexedDB/idbdatabase_close2.htm
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<head>
<title>IDBDatabase.close() - unblock the delete database request</title>
<script type="text/javascript" src="support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type="text/javascript">
var db = null;
var bBlockEventFired = false;
var t = async_test();
var t = async_test();

function RunTest() {
var rqOpen = window.indexedDB.open(databaseName, databaseVersion);
rqOpen.onsuccess = t.step_func( function(event)
Expand All @@ -22,13 +22,13 @@
});
rqDeleteDB.onerror = t.step_func( assert_deleteDatabase_request_error );
rqDeleteDB.onsuccess = t.step_func( function (event) {
assert_true(bBlockEventFired, "delete database request not unblocked when existing database connection is closed")
assert_true(bBlockEventFired, "delete database request not unblocked when existing database connection is closed")
t.done();
return;
});
});
}

add_completion_callback(function() { if(db) db.close(); });

setup( function() {
Expand Down
8 changes: 4 additions & 4 deletions IndexedDB/idbkeyrange_incorrect.htm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- Submitted from TestTWF Paris -->
<html>
<head>
<head>
<meta charset=utf-8>
<title id='desc'>IDBKeyRange Tests - Incorrect</title>
<link rel=help href="http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#range-concept">
Expand All @@ -13,7 +13,7 @@
<script src="support.js"></script>

<script type="text/javascript">

// TypeError: bound requires more than 0 arguments
test( function() {
assert_throws(new TypeError(), function() {
Expand Down Expand Up @@ -54,7 +54,7 @@
test( function() {
assert_throws("DataError", function() {
IDBKeyRange.bound('a', 1);
});
});
assert_throws("DataError", function() {
IDBKeyRange.bound(new Date(), 1);
});
Expand Down Expand Up @@ -85,7 +85,7 @@

</script>
</head>

<body>
<div id="log"></div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions IndexedDB/key_invalid.htm
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
// booleans
invalid_key( 'true' , true );
invalid_key( 'false' , false );

// null/NaN/undefined
invalid_key( 'null' , null );
invalid_key( 'NaN' , NaN );
invalid_key( 'undefined' , undefined );
invalid_key( 'undefined2');

// functions
// functions
invalid_key( 'function() {}', function(){} );

// objects
Expand All @@ -71,7 +71,7 @@
invalid_key( 'new String()' , new String() );
invalid_key( 'new Number()' , new Number() );
invalid_key( 'new Boolean()' , new Boolean() );

// arrays
invalid_key( '[{}]' , [{}] );
invalid_key( '[[], [], [], [[ Date ]]]' , [ [], [], [], [[ Date ]] ] );
Expand Down

0 comments on commit 765c68f

Please sign in to comment.