mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -14,18 +14,15 @@
|
|||
var t = async_test('Check that watchPosition returns synchronously before any callbacks are invoked.'),
|
||||
id, checkMethodHasReturned, hasMethodReturned = false;
|
||||
|
||||
checkMethodHasReturned = t.step_func(function() {
|
||||
checkMethodHasReturned = t.step_func_done(function() {
|
||||
assert_true(hasMethodReturned);
|
||||
done();
|
||||
});
|
||||
|
||||
try {
|
||||
id = geo.watchPosition(checkMethodHasReturned, checkMethodHasReturned);
|
||||
hasMethodReturned = true;
|
||||
} catch(e) {
|
||||
t.step(function() {
|
||||
assert_unreached('An exception was thrown unexpectedly: ' + e.message);
|
||||
});
|
||||
t.unreached_func('An exception was thrown unexpectedly: ' + e.message);
|
||||
}
|
||||
|
||||
// Rewrite http://dev.w3.org/geo/api/test-suite/t.html?00151
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue