Index: third_party/WebKit/LayoutTests/ballista/share-arity.html |
diff --git a/third_party/WebKit/LayoutTests/ballista/share-arity.html b/third_party/WebKit/LayoutTests/ballista/share-arity.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..225d2e76cfe20ceff489ad21a469062353e61356 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/ballista/share-arity.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<script src="../resources/js-test.js"></script> |
+<script src="../resources/mojo-helpers.js"></script> |
+<script src="resources/mock-ballista-service.js"></script> |
+<script> |
+description('Test navigator.actions.share with the wrong arity.'); |
+ |
+if (!window.testRunner) |
+ debug('This test cannot be run without the TestRunner'); |
+ |
+// Clean-up any unused objects from previous tests. |
+gc(); |
+jsTestIsAsync = true; |
+testRunner.waitUntilDone(); |
+ |
+debug('page is visible'); |
Sam McNally
2016/04/13 04:32:35
Remove. Fix everywhere.
Matt Giuca
2016/04/13 05:43:01
Done.
|
+mockBallistaServiceReady.then(() => { |
+ // Test wrong arity. |
+ navigator.actions.share().then(shareSuccess, shareFailure); |
Sam McNally
2016/04/13 04:32:35
Test 1 and 3 args.
Matt Giuca
2016/04/13 05:43:01
Done.
|
+}); |
+</script> |
+</body> |
+</html> |