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

Side by Side Diff: LayoutTests/fast/frames/resources/sandboxed-iframe-storage-disallowed.html

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 function debug(msg) 7 function debug(msg)
8 { 8 {
9 var span = document.createElement("span"); 9 var span = document.createElement("span");
10 document.getElementById("console").appendChild(span); 10 document.getElementById("console").appendChild(span);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an excepti on" : _ev) + ". Threw exception " + exception + "."); 47 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an excepti on" : _ev) + ". Threw exception " + exception + ".");
48 } else if (typeof _av == "undefined") 48 } else if (typeof _av == "undefined")
49 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was undefined."); 49 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was undefined.");
50 else 50 else
51 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was " + _av + "."); 51 testFailed(_a + " should throw " + (typeof _e == "undefined" ? "an exception " : _ev) + ". Was " + _av + ".");
52 } 52 }
53 </script> 53 </script>
54 <script> 54 <script>
55 55
56 window.onload = function() { 56 window.onload = function() {
57 shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)", "'Error: SecurityError: DOM Exception 18'"); 57 shouldThrow("window.openDatabase('SandboxedIframeStorageDisallowed', '1.0', '', 1)", "'SecurityError: An attempt was made to break through the security poli cy of the user agent.'");
58 shouldThrow("window.localStorage", "'Error: SecurityError: DOM Exception 18' "); 58 shouldThrow("window.localStorage", "'SecurityError: An attempt was made to b reak through the security policy of the user agent.'");
59 shouldThrow("window.sessionStorage", "'Error: SecurityError: DOM Exception 1 8'"); 59 shouldThrow("window.sessionStorage", "'SecurityError: An attempt was made to break through the security policy of the user agent.'");
60 } 60 }
61 61
62 </script> 62 </script>
63 </head> 63 </head>
64 <body> 64 <body>
65 <div id="console"></div> 65 <div id="console"></div>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698