Title: [121308] trunk/Tools
Revision
121308
Author
[email protected]
Date
2012-06-26 18:38:41 -0700 (Tue, 26 Jun 2012)

Log Message

Add support for preciseTime() to WebKitTestRunner
https://bugs.webkit.org/show_bug.cgi?id=90027

Reviewed by Darin Adler.

It would be nice to be able to use preciseTime() in WebKitTestRunner like we can in DumpRenderTree.

* WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 
(WTR::LayoutTestController::preciseTime): 
(WTR):
* WebKitTestRunner/InjectedBundle/LayoutTestController.h:
(LayoutTestController):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (121307 => 121308)


--- trunk/Tools/ChangeLog	2012-06-27 01:34:01 UTC (rev 121307)
+++ trunk/Tools/ChangeLog	2012-06-27 01:38:41 UTC (rev 121308)
@@ -1,3 +1,19 @@
+2012-06-26  Mark Hahnenberg  <[email protected]>
+
+        Add support for preciseTime() to WebKitTestRunner
+        https://bugs.webkit.org/show_bug.cgi?id=90027
+
+        Reviewed by Darin Adler.
+
+        It would be nice to be able to use preciseTime() in WebKitTestRunner like we can in DumpRenderTree.
+
+        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 
+        (WTR::LayoutTestController::preciseTime): 
+        (WTR):
+        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
+        (LayoutTestController):
+
 2012-06-26  Lucas Forschler  <[email protected]>
 
       Teach the Apple port how to build the test tools in build-webkit

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl (121307 => 121308)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl	2012-06-27 01:34:01 UTC (rev 121307)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl	2012-06-27 01:38:41 UTC (rev 121308)
@@ -32,6 +32,7 @@
         void waitForPolicyDelegate();
         void waitUntilDone();
         void notifyDone();
+        double preciseTime();
 
         // Other dumping.
         void dumpBackForwardList();

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp (121307 => 121308)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp	2012-06-27 01:34:01 UTC (rev 121307)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp	2012-06-27 01:38:41 UTC (rev 121308)
@@ -43,6 +43,7 @@
 #include <WebKit2/WKBundleScriptWorld.h>
 #include <WebKit2/WKRetainPtr.h>
 #include <WebKit2/WebKit2.h>
+#include <wtf/CurrentTime.h>
 #include <wtf/HashMap.h>
 #include <wtf/text/StringBuilder.h>
 
@@ -617,4 +618,9 @@
     WKBundleOverrideBoolPreferenceForTestRunner(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), toWK(preference).get(), value);
 }
 
+double LayoutTestController::preciseTime()
+{
+    return currentTime();
+}
+
 } // namespace WTR

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h (121307 => 121308)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h	2012-06-27 01:34:01 UTC (rev 121307)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h	2012-06-27 01:38:41 UTC (rev 121308)
@@ -63,6 +63,7 @@
     void dumpChildFramesAsText() { m_whatToDump = AllFramesText; }
     void waitUntilDone();
     void notifyDone();
+    double preciseTime();
 
     // Other dumping.
     void dumpBackForwardList() { m_shouldDumpBackForwardListsForAllWindows = true; }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to