| Index: LayoutTests/dart/WindowAttrs.html
|
| diff --git a/LayoutTests/dart/WindowAttrs.html b/LayoutTests/dart/WindowAttrs.html
|
| deleted file mode 100644
|
| index 7ea2de6959d7a532a760557f9897528b8be61382..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/dart/WindowAttrs.html
|
| +++ /dev/null
|
| @@ -1,54 +0,0 @@
|
| -<html>
|
| -<body>
|
| -
|
| -<div id='foo'></div>
|
| -
|
| -<script type="application/dart">
|
| -#import("dart:dom");
|
| -
|
| -void main() {
|
| - if (null !== layoutTestController) {
|
| - layoutTestController.dumpAsText();
|
| - }
|
| - log("window.document: $document");
|
| - // FIXME: move into separate HTMLDocument test.
|
| - HTMLElement foo = document.getElementById('foo');
|
| - log("window.document.getElementById('foo'): $foo");
|
| - HTMLElement missing = document.getElementById('missing_id');
|
| - log("window.document.getElementById('missing_id'): $missing");
|
| - bool closed = window.closed;
|
| - log("window.closed: $closed");
|
| - window.name = "WindowAttr";
|
| - String name = window.name;
|
| - log("window.name: '$name'");
|
| - mustThrow("window.name = 239", function() { window.name = 239; });
|
| - // Note: later we may rethink it and treat null as allowed value.
|
| - mustThrow("window.name = null", function() { window.name = null; });
|
| - mustThrow("window.onload = 239", function() { window.onload = 239; });
|
| - log("PASS");
|
| -}
|
| -
|
| -void mustThrow(String snippet, void code()) {
|
| - // FIXME: re-enable when we don't immediately output exceptions into stdout.
|
| - return;
|
| - try {
|
| - code();
|
| - log("FAILED: $snippet should have thrown");
|
| - } catch(var e) {
|
| - log("$snippet threw $e");
|
| - }
|
| -}
|
| -
|
| -void log(String msg) {
|
| - HTMLElement element = document.createElement('div');
|
| - element.innerHTML = msg;
|
| - document.body.appendChild(element);
|
| -}
|
| -</script>
|
| -
|
| -<script>
|
| -// Fake script to trigger Dart execution.
|
| -</script>
|
| -
|
| -</body>
|
| -</html>
|
|
|