Re: [w3c/manifest] WIP: beforeinstallprompt (#506)

kenchris commented on this pull request.



> +  Simulate manual "Add to Home Screen"
+</button>
+<script>
+/*globals BeforeInstallPromptEvent, DOMException*/
+"use strict";
+//
+{
+  const assertion = "No arguments should throw";
+  try {
+    new BeforeInstallPromptEvent();
+    console.assert(false, assertion);
+  } catch (err) {
+    console.assert(true, assertion);
+  }
+} {
+  const assertion = "First argument stringifies";

I don't think the argument will stringify anything... but it itself may be stringified

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/506

Received on Monday, 24 October 2016 11:33:00 UTC