| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |