Title: [107869] trunk
Revision
107869
Author
[email protected]
Date
2012-02-15 18:47:12 -0800 (Wed, 15 Feb 2012)

Log Message

Expose Window constructor
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.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (107868 => 107869)


--- trunk/LayoutTests/ChangeLog	2012-02-16 02:43:17 UTC (rev 107868)
+++ trunk/LayoutTests/ChangeLog	2012-02-16 02:47:12 UTC (rev 107869)
@@ -1,3 +1,13 @@
+2012-02-15  Erik Arvidsson  <[email protected]>
+
+        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  <[email protected]>
 
         fill-opacity does not render properly only on Chromium Mac.

Added: trunk/LayoutTests/fast/dom/Window/window-constructor-presence-expected.txt (0 => 107869)


--- trunk/LayoutTests/fast/dom/Window/window-constructor-presence-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/window-constructor-presence-expected.txt	2012-02-16 02:47:12 UTC (rev 107869)
@@ -0,0 +1,11 @@
+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
+

Added: trunk/LayoutTests/fast/dom/Window/window-constructor-presence.html (0 => 107869)


--- trunk/LayoutTests/fast/dom/Window/window-constructor-presence.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/window-constructor-presence.html	2012-02-16 02:47:12 UTC (rev 107869)
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<body>
+<script src=""
+<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=""
+</body>

Modified: trunk/Source/WebCore/ChangeLog (107868 => 107869)


--- trunk/Source/WebCore/ChangeLog	2012-02-16 02:43:17 UTC (rev 107868)
+++ trunk/Source/WebCore/ChangeLog	2012-02-16 02:47:12 UTC (rev 107869)
@@ -1,3 +1,14 @@
+2012-02-15  Erik Arvidsson  <[email protected]>
+
+        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  <[email protected]>
 
         fill-opacity does not render properly only on Chromium Mac.

Modified: trunk/Source/WebCore/page/DOMWindow.idl (107868 => 107869)


--- trunk/Source/WebCore/page/DOMWindow.idl	2012-02-16 02:43:17 UTC (rev 107868)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2012-02-16 02:47:12 UTC (rev 107869)
@@ -401,6 +401,7 @@
         attribute [Conditional=SHADOW_DOM, V8EnabledAtRuntime=shadowDOM] ShadowRootConstructor WebKitShadowRoot;
 
         attribute HTMLDocumentConstructor HTMLDocument;
+        attribute DOMWindowConstructor Window;
 
         attribute HTMLElementConstructor HTMLElement;
         attribute HTMLAnchorElementConstructor HTMLAnchorElement;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to