Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -7,11 +7,11 @@
<script src=support.js></script>
<script>
function invalid_optionalParameters(desc, params) {
function invalid_optionalParameters(desc, params, exception = "InvalidAccessError") {
var t = async_test(document.title + " - " + desc);
createdb(t).onupgradeneeded = function(e) {
assert_throws(null, function() {
assert_throws(exception, function() {
e.target.result.createObjectStore("store", params);
});
@ -20,9 +20,9 @@
}
invalid_optionalParameters("autoInc and empty keyPath", {autoIncrement: true, keyPath: ""});
invalid_optionalParameters("autoInc and keyPath array", {autoIncrement: true, keyPath: []});
invalid_optionalParameters("autoInc and keyPath array", {autoIncrement: true, keyPath: []}, "SyntaxError");
invalid_optionalParameters("autoInc and keyPath array 2", {autoIncrement: true, keyPath: ["hey"]});
invalid_optionalParameters("autoInc and keyPath object", {autoIncrement: true, keyPath: {a:"hey", b:2}});
invalid_optionalParameters("autoInc and keyPath object", {autoIncrement: true, keyPath: {a:"hey", b:2}}, "SyntaxError");
</script>