Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / console / console-timestamp.html
index eddcc2f..3e11165 100644 (file)
@@ -11,6 +11,7 @@ function test()
     function addMessageWithFixedTimestamp(messageText, timestamp)
     {
         var message = new WebInspector.ConsoleMessage(
+            WebInspector.console.target(),
             WebInspector.ConsoleMessage.MessageSource.Other, // source
             WebInspector.ConsoleMessage.MessageLevel.Log, // level
             messageText,
@@ -28,17 +29,17 @@ function test()
 
     InspectorTest.addResult("Console messages with timestamps disabled:");
     addMessageWithFixedTimestamp("<Before>");
-    addMessageWithFixedTimestamp("<Before>");
     addMessageWithFixedTimestamp("<Before>", baseTimestamp + 456);
+    addMessageWithFixedTimestamp("<Before>");
 
     InspectorTest.dumpConsoleMessages();
 
     InspectorTest.addResult("Console messages with timestamps enabled:");
     WebInspector.settings.consoleTimestampsEnabled.set(true);
 
-    addMessageWithFixedTimestamp("<After>");
-    addMessageWithFixedTimestamp("<After>");
-    addMessageWithFixedTimestamp("<After>", baseTimestamp + 456);
+    addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000);
+    addMessageWithFixedTimestamp("<After>", baseTimestamp + 1000);
+    addMessageWithFixedTimestamp("<After>", baseTimestamp + 1456);
 
     WebInspector.settings.consoleTimestampsEnabled.set(false);
     WebInspector.settings.consoleTimestampsEnabled.set(true);