Index: LayoutTests/inspector/console/console-timestamp.html |
diff --git a/LayoutTests/inspector/console/console-timestamp.html b/LayoutTests/inspector/console/console-timestamp.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e03a3d6d4d4f6c737e53dad11861f0b11d79fedc |
--- /dev/null |
+++ b/LayoutTests/inspector/console/console-timestamp.html |
@@ -0,0 +1,39 @@ |
+<html> |
+<head> |
+<script src="../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../http/tests/inspector/console-test.js"></script> |
+<script> |
+function test() |
+{ |
+ function addMessageWithFixedTimestamp() |
+ { |
+ var message = new WebInspector.ConsoleMessage( |
+ WebInspector.ConsoleMessage.MessageSource.Other, |
+ WebInspector.ConsoleMessage.MessageLevel.Log, |
+ "PASS", |
+ undefined, |
+ undefined, |
+ undefined, |
+ undefined, |
+ undefined, |
+ undefined, |
+ undefined, |
+ undefined, |
+ 1400000000123 / 1000); // 2014-05-13T16:53:20.123Z |
+ WebInspector.console.addMessage(message); |
+ } |
+ |
+ addMessageWithFixedTimestamp(); |
+ WebInspector.settings.consoleTimestampsEnabled.set(true); |
+ addMessageWithFixedTimestamp(); |
+ InspectorTest.dumpConsoleMessages(); |
+ InspectorTest.completeTest(); |
+} |
+</script> |
+</head> |
+<body onload="runTest()"> |
+<p> |
+Tests the console timestamp setting |
+</p> |
+</body> |
+</html> |