https://bugs.webkit.org/show_bug.cgi?id=78722
Reviewed by Adam Barth.
Source/WebCore:
Test: fast/dom/Window/window-constructor-presence.html
* page/DOMWindow.idl:
LayoutTests:
* fast/dom/Window/window-constructor-presence-expected.txt: Added.
* fast/dom/Window/window-constructor-presence.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107869
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-15 Erik Arvidsson <arv@chromium.org>
+
+ Expose Window constructor
+ https://bugs.webkit.org/show_bug.cgi?id=78722
+
+ Reviewed by Adam Barth.
+
+ * fast/dom/Window/window-constructor-presence-expected.txt: Added.
+ * fast/dom/Window/window-constructor-presence.html: Added.
+
2012-02-15 Kelly Norton <knorton@google.com>
fill-opacity does not render properly only on Chromium Mac.
--- /dev/null
+Tests that the Window constructor is present and that window is an instanceof of it.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS typeof Window is not "undefined"
+PASS window instanceof Window is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
--- /dev/null
+<!DOCTYPE html>
+<body>
+<script src="../../js/resources/js-test-pre.js"></script>
+<script>
+
+description('Tests that the Window constructor is present and that window is an instanceof of it.');
+
+shouldNotBe('typeof Window', '"undefined"');
+shouldBeTrue('window instanceof Window');
+
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+2012-02-15 Erik Arvidsson <arv@chromium.org>
+
+ Expose Window constructor
+ https://bugs.webkit.org/show_bug.cgi?id=78722
+
+ Reviewed by Adam Barth.
+
+ Test: fast/dom/Window/window-constructor-presence.html
+
+ * page/DOMWindow.idl:
+
2012-02-15 Kelly Norton <knorton@google.com>
fill-opacity does not render properly only on Chromium Mac.
attribute [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
attribute HTMLDocumentConstructor HTMLDocument;
+ attribute DOMWindowConstructor Window;
attribute HTMLElementConstructor HTMLElement;
attribute HTMLAnchorElementConstructor HTMLAnchorElement;