Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d

This commit is contained in:
WPT Sync Bot 2020-01-26 08:23:54 +00:00
parent 0bd2661492
commit 0cb6acf9a2
4828 changed files with 87680 additions and 41620 deletions

View file

@ -11,42 +11,42 @@
<script>
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00027
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition();
});
}, 'Call getCurrentPosition without arguments, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00011
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition(null);
});
}, 'Call getCurrentPosition with null success callback, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00013
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition(null, null);
});
}, 'Call getCurrentPosition with null success and error callbacks, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00028
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition(3);
});
}, 'Call getCurrentPosition() with wrong type for first argument. Exception expected.');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00029
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition(dummyFunction, 4);
});
}, 'Call getCurrentPosition() with wrong type for second argument. Exception expected.');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00030
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.getCurrentPosition(dummyFunction, dummyFunction, 4);
});
}, 'Call getCurrentPosition() with wrong type for third argument. Exception expected.');

View file

@ -11,42 +11,42 @@
<script>
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00058
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition();
});
}, 'Call watchPosition without arguments, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00015
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition(null);
});
}, 'Call watchPosition with null success callback, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00017
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition(null, null);
});
}, 'Call watchPosition with null success and error callbacks, check that exception is thrown');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00059
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition(3);
});
}, 'Call watchPosition() with wrong type for first argument. Exception expected.');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00060
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition(dummyFunction, 4);
});
}, 'Call watchPosition() with wrong type for second argument. Exception expected.');
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00061
test(function() {
assert_throws(new TypeError(), function() {
assert_throws_js(TypeError, function() {
geo.watchPosition(dummyFunction, dummyFunction, 4);
});
}, 'Call watchPosition() with wrong type for third argument. Exception expected.');