Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/tests/policy.js

Issue 29333048: Issue 3452 - Bring back $ping type option (test changes) (Closed)
Patch Set: Created Dec. 23, 2015, 1:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/content/tests/matcher.js ('k') | chrome/content/tests/regexpFilters_matching.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/policy.js
===================================================================
--- a/chrome/content/tests/policy.js
+++ b/chrome/content/tests/policy.js
@@ -231,16 +231,31 @@
'}' +
'catch (e)' +
'{' +
dispatchReadyEvent +
'}' +
'</script>',
"http://127.0.0.1:1234/test.js", "script", false, true
],
+ [
+ "Beacon",
+ '<script>' +
+ 'try' +
+ '{' +
+ 'navigator.sendBeacon("test.cgi");' +
+ 'setTimeout(function() {' + dispatchReadyEvent + '}, 500)' +
+ '}' +
+ 'catch (e)' +
+ '{' +
+ dispatchReadyEvent +
+ '}' +
+ '</script>',
+ "http://127.0.0.1:1234/test.cgi", "ping", false, true
+ ],
];
if (window.navigator.mimeTypes["application/x-shockwave-flash"] && window.navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
tests.push([
"HTML embed (Flash)",
'<embed type="application/x-shockwave-flash" src="test.swf"></embed>' +
'<script>var r = new XMLHttpRequest();r.open("GET", "", false);r.send(null);</script>',
« no previous file with comments | « chrome/content/tests/matcher.js ('k') | chrome/content/tests/regexpFilters_matching.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld