Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / timeline / timeline-load-event.html
index 9c1dc43..a1c8c0d 100644 (file)
@@ -6,21 +6,15 @@
 
 function test()
 {
-    finishCalled = 0;
+    InspectorTest.startTimeline(function() { InspectorTest.reloadPage(pageReloaded); });
 
-    InspectorTest.startTimeline(function() { InspectorTest.reloadPage(finish); });
-    InspectorTest.waitForRecordType("MarkLoad", contentEvent);
-
-    function contentEvent()
+    function pageReloaded()
     {
         InspectorTest.stopTimeline(finish);
     }
 
     function finish()
     {
-        if (++finishCalled !== 2)
-            return;
-
         InspectorTest.addResult("Model records:");
         InspectorTest.printTimelineRecords("MarkDOMContent");
         InspectorTest.printTimelineRecords("MarkLoad");