mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue