mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +01:00
Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d
This commit is contained in:
parent
0bd2661492
commit
0cb6acf9a2
4828 changed files with 87680 additions and 41620 deletions
|
@ -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.');
|
||||
|
|
|
@ -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.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue