forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backed out changeset 9ff60304993b (bug 1643205) for multiple failures…
… e.g. share-consume-activation.https.html. CLOSED TREE
- Loading branch information
Showing
8 changed files
with
34 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,6 @@ DIRS += [ | |
'url', | ||
'webauthn', | ||
'webidl', | ||
'webshare', | ||
'xml', | ||
'xslt', | ||
'xul', | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
dom/webshare/test/mochitest/test_navigator_share_consume_user_activation.html
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
testing/web-platform/tests/web-share/share-consume-activation.https.html
This file was deleted.
Oops, something went wrong.
41 changes: 13 additions & 28 deletions
41
testing/web-platform/tests/web-share/share-empty.https.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta charset="utf-8"> | ||
<title>WebShare Test: Share no known fields</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="resources/manual-helper.js"></script> | ||
<script src="/resources/testdriver-vendor.js"></script> | ||
<script src="/resources/testdriver.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
promise_test(async t => { | ||
await test_driver.bless("web share", () => { | ||
promise_test(t => { | ||
return promise_rejects_js(t, TypeError, navigator.share()); | ||
}); | ||
}, "share with no arguments (same as empty dictionary)"); | ||
}, 'share with no arguments (same as empty dictionary)'); | ||
|
||
promise_test(async t => { | ||
await test_driver.bless("web share", () => { | ||
promise_test(t => { | ||
return promise_rejects_js(t, TypeError, navigator.share({})); | ||
}); | ||
}, "share with an empty dictionary"); | ||
}, 'share with an empty dictionary'); | ||
|
||
promise_test(async t => { | ||
await test_driver.bless("web share", () => { | ||
promise_test(t => { | ||
return promise_rejects_js(t, TypeError, navigator.share(undefined)); | ||
}); | ||
}, "share with a undefined argument (same as empty dictionary)"); | ||
}, 'share with a undefined argument (same as empty dictionary)'); | ||
|
||
promise_test(async t => { | ||
await test_driver.bless("web share", () => { | ||
promise_test(t => { | ||
return promise_rejects_js(t, TypeError, navigator.share(null)); | ||
}); | ||
}, "share with a null argument (same as empty dictionary)"); | ||
}, 'share with a null argument (same as empty dictionary)'); | ||
|
||
promise_test(async t => { | ||
await test_driver.bless("web share", () => { | ||
return promise_rejects_js( | ||
t, | ||
TypeError, | ||
navigator.share({ unused: "unexpected field" }) | ||
); | ||
}); | ||
}, "share with a dictionary containing only surplus fields"); | ||
promise_test(t => { | ||
return promise_rejects_js(t, | ||
TypeError, navigator.share({unused: 'unexpected field'})); | ||
}, 'share with a dictionary containing only surplus fields'); | ||
</script> | ||
</body> | ||
</html> |
23 changes: 8 additions & 15 deletions
23
testing/web-platform/tests/web-share/share-url-invalid.https.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta charset="utf-8"> | ||
<title>WebShare Test: Share with an invalid URL</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/testdriver-vendor.js"></script> | ||
<script src="/resources/testdriver.js"></script> | ||
</head> | ||
<body> | ||
<script> | ||
promise_test(async t => { | ||
// URL is invalid in that the URL Parser returns failure (port is too | ||
// large). | ||
const url = "http://example.com:65536"; | ||
await test_driver.bless( | ||
"web share", | ||
() => { | ||
return promise_rejects_js(t, TypeError, navigator.share({ url })); | ||
}, | ||
"share with an invalid URL" | ||
); | ||
}); | ||
promise_test(t => { | ||
// URL is invalid in that the URL Parser returns failure (port is too | ||
// large). | ||
const url = 'http://example.com:65536'; | ||
return promise_rejects_js( | ||
t, TypeError, navigator.share({url})); | ||
}, 'share with an invalid URL'); | ||
</script> | ||
</body> | ||
</html> |