Changeset 109892 in webkit


Ignore:
Timestamp:
Mar 6, 2012 2:56:25 AM (12 years ago)
Author:
fpizlo@apple.com
Message:

DumpRenderTree should support preciseTime()
https://bugs.webkit.org/show_bug.cgi?id=80397

Reviewed by Gavin Barraclough.

  • DumpRenderTree/LayoutTestController.cpp:

(preciseTimeCallback):
(LayoutTestController::staticFunctions):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r109890 r109892  
     12012-03-06  Filip Pizlo  <fpizlo@apple.com>
     2
     3        DumpRenderTree should support preciseTime()
     4        https://bugs.webkit.org/show_bug.cgi?id=80397
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        * DumpRenderTree/LayoutTestController.cpp:
     9        (preciseTimeCallback):
     10        (LayoutTestController::staticFunctions):
     11
    1122012-03-06  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Tools/DumpRenderTree/LayoutTestController.cpp

    r107682 r109892  
    4040#include <stdio.h>
    4141#include <wtf/Assertions.h>
     42#include <wtf/CurrentTime.h>
    4243#include <wtf/MathExtras.h>
    4344#include <wtf/OwnArrayPtr.h>
     
    22032204    JSObjectCallAsFunction(context, JSValueToObject(context, arguments[1], 0), thisObject, 0, 0, 0);
    22042205    return JSValueMakeUndefined(context);
     2206}
     2207
     2208static JSValueRef preciseTimeCallback(JSContextRef context, JSObjectRef, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     2209{
     2210    return JSValueMakeNumber(context, WTF::currentTime());
    22052211}
    22062212
     
    25022508        { "focusWebView", focusWebViewCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    25032509        { "setBackingScaleFactor", setBackingScaleFactorCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
     2510        { "preciseTime", preciseTimeCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    25042511        { 0, 0, 0 }
    25052512    };
Note: See TracChangeset for help on using the changeset viewer.