Title: [95109] trunk/Tools
Revision
95109
Author
[email protected]
Date
2011-09-14 12:00:50 -0700 (Wed, 14 Sep 2011)

Log Message

Implement globalFlag for WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=68033
<rdar://problem/10119204>

Reviewed by Sam Weinig.

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Porting globalFlag from DRT
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::LayoutTestController): initialize m_globalFlag to false
* WebKitTestRunner/InjectedBundle/LayoutTestController.h: add m_globalFlag
(WTR::LayoutTestController::globalFlag): simple getter
(WTR::LayoutTestController::setGlobalFlag): simple setter

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (95108 => 95109)


--- trunk/Tools/ChangeLog	2011-09-14 18:55:25 UTC (rev 95108)
+++ trunk/Tools/ChangeLog	2011-09-14 19:00:50 UTC (rev 95109)
@@ -1,3 +1,18 @@
+2011-09-14  Jon Lee  <[email protected]>
+
+        Implement globalFlag for WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=68033
+        <rdar://problem/10119204>
+
+        Reviewed by Sam Weinig.
+
+        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Porting globalFlag from DRT
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
+        (WTR::LayoutTestController::LayoutTestController): initialize m_globalFlag to false
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.h: add m_globalFlag
+        (WTR::LayoutTestController::globalFlag): simple getter
+        (WTR::LayoutTestController::setGlobalFlag): simple setter
+
 2011-09-13  Eric Seidel  <[email protected]>
 
         Remove ENABLE_SVG_USE as <use> is required by HTML5

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl (95108 => 95109)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl	2011-09-14 18:55:25 UTC (rev 95108)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl	2011-09-14 19:00:50 UTC (rev 95109)
@@ -66,6 +66,9 @@
         DOMString markerTextForListItem(in object element);
         unsigned long windowCount();
 
+        // Special DOM variables.
+        attribute boolean globalFlag;
+
         // Repaint testing.
         void testRepaint();
         void repaintSweepHorizontally();

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp (95108 => 95109)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp	2011-09-14 18:55:25 UTC (rev 95108)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp	2011-09-14 19:00:50 UTC (rev 95109)
@@ -106,6 +106,7 @@
     , m_willSendRequestReturnsNull(false)
     , m_policyDelegateEnabled(false)
     , m_policyDelegatePermissive(false)
+    , m_globalFlag(false)
 {
     platformInitialize();
 }

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h (95108 => 95109)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h	2011-09-14 18:55:25 UTC (rev 95108)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h	2011-09-14 19:00:50 UTC (rev 95109)
@@ -169,6 +169,9 @@
     void setTextDirection(JSStringRef);
 
     void setShouldStayOnPageAfterHandlingBeforeUnload(bool);
+    
+    bool globalFlag() const { return m_globalFlag; }
+    void setGlobalFlag(bool value) { m_globalFlag = value; }
 
 private:
     static const double waitToDumpWatchdogTimerInterval;
@@ -198,6 +201,8 @@
 
     bool m_policyDelegateEnabled;
     bool m_policyDelegatePermissive;
+    
+    bool m_globalFlag;
 
     PlatformTimerRef m_waitToDumpWatchdogTimer;
 };
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to