Unreviewed. Reduce test flakyness.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2011 17:19:55 +0000 (17:19 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2011 17:19:55 +0000 (17:19 +0000)
There was a race between Inspector's internal page reloaded message and load event.

* inspector/timeline/timeline-load-event-expected.txt:
* inspector/timeline/timeline-load-event.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/inspector/timeline/timeline-load-event-expected.txt
LayoutTests/inspector/timeline/timeline-load-event.html

index 55f6569a3148cb6de879e4f0ba61273dca4682e6..ab946c919e70bad18f6f7f91d9a31d8d697fe630 100644 (file)
@@ -1,3 +1,11 @@
+2011-10-05  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Unreviewed. Reduce test flakyness.
+        There was a race between Inspector's internal page reloaded message and load event.
+
+        * inspector/timeline/timeline-load-event-expected.txt:
+        * inspector/timeline/timeline-load-event.html:
+
 2011-10-05  David Hyatt  <hyatt@apple.com>
 
         https://bugs.webkit.org/show_bug.cgi?id=68731
index 005cb542d369bc0c4ca06edd2ca7be2cfbfeac21..fcc265785b9b42d87c030e94398785b53fdf3a61 100644 (file)
@@ -1,5 +1,6 @@
 Tests the load event.
 
+Page reloaded.
 MarkLoad Properties:
 {
     startTime : <number>
@@ -9,5 +10,4 @@ MarkLoad Properties:
     usedHeapSize : <number>
     totalHeapSize : <number>
 }
-Page reloaded.
 
index f98c900626b4f285f713e36c34409b7709ca6296..0dc4904e45484a786f7b471577038aab9d1ff76f 100644 (file)
@@ -14,14 +14,15 @@ function test()
 
     function contentEvent()
     {
-        InspectorTest.printTimelineRecords("MarkLoad");
         InspectorTest.stopTimeline(finish);
     }
 
     function finish()
     {
-        if (++finishCalled === 2)
+        if (++finishCalled === 2) {
+            InspectorTest.printTimelineRecords("MarkLoad");
             InspectorTest.completeTest();
+        }
     }
 }