<html>
<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
<script src="../../fast/js/resources/js-test-pre.js"></script>
-<script src="../../fast/js/resources/js-test-post-function.js"></script>
<script src="resources/shared.js"></script>
</head>
<body>
checkBoundKeyRange("'aaf'", "'abf'", true, true);
try {
- debug("Passing an invalid key into only([])");
- webkitIDBKeyRange.only([]);
+ debug("Passing an invalid key into only({})");
+ webkitIDBKeyRange.only({});
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
}
try {
- debug("Passing an invalid key into upperBound([])");
- webkitIDBKeyRange.upperBound([]);
+ debug("Passing an invalid key into upperBound({})");
+ webkitIDBKeyRange.upperBound({});
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
}
try {
- debug("Passing an invalid key into lowerBound([])");
- webkitIDBKeyRange.lowerBound([]);
+ debug("Passing an invalid key into lowerBound({})");
+ webkitIDBKeyRange.lowerBound({});
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
}
try {
- debug("Passing an invalid key into bound(null, [])");
- webkitIDBKeyRange.bound(null, []);
+ debug("Passing an invalid key into bound(null, {})");
+ webkitIDBKeyRange.bound(null, {});
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
}
try {
- debug("Passing an invalid key into bound([],null)");
- webkitIDBKeyRange.bound([], null);
+ debug("Passing an invalid key into bound({},null)");
+ webkitIDBKeyRange.bound({}, null);
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
}
try {
- debug("Passing an invalid key into bound([], [])");
- webkitIDBKeyRange.bound([], []);
+ debug("Passing an invalid key into bound({}, {})");
+ webkitIDBKeyRange.bound({}, {});
testFailed("No exception thrown");
} catch (e) {
testPassed("Caught exception: " + e.toString());
test();
-var successfullyParsed = true;
done();
</script>