Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/js-test-resources/js-test-pre.js"></script> 4 <script src="/js-test-resources/js-test-pre.js"></script>
5 <script> 5 <script>
6 description('Check that a SecurityPolicyViolationEvent handler exists, a nd that events can be created.'); 6 description('Check that a SecurityPolicyViolationEvent handler exists, a nd that events can be created.');
7 7
8 try { 8 try {
9 shouldBeEqualToString('typeof document.onsecuritypolicyviolation', ' object'); 9 shouldBeEqualToString('typeof document.onsecuritypolicyviolation', ' object');
10 shouldBeEqualToString('typeof SecurityPolicyViolationEvent', 'functi on'); 10 shouldBeEqualToString('typeof SecurityPolicyViolationEvent', 'functi on');
(...skipping 10 matching lines...) Expand all
21 'statusCode': 200, 21 'statusCode': 200,
22 }; 22 };
23 window.e = new SecurityPolicyViolationEvent('SecurityPolicyViolation ', data); 23 window.e = new SecurityPolicyViolationEvent('SecurityPolicyViolation ', data);
24 shouldBeEqualToString('typeof window.e', 'object'); 24 shouldBeEqualToString('typeof window.e', 'object');
25 for (key in data) 25 for (key in data)
26 shouldBe('window.e.' + key, JSON.stringify(data[key])); 26 shouldBe('window.e.' + key, JSON.stringify(data[key]));
27 } catch (ex) { 27 } catch (ex) {
28 testFailed('Exception thrown: ' + ex.message); 28 testFailed('Exception thrown: ' + ex.message);
29 } 29 }
30 </script> 30 </script>
31 <script src="/js-test-resources/js-test-post.js"></script>
32 </head> 31 </head>
33 <body> 32 <body>
34 </body> 33 </body>
35 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698