Index: LayoutTests/inspector/console/console-format-es6.html |
diff --git a/LayoutTests/inspector/console/console-format-es6.html b/LayoutTests/inspector/console/console-format-es6.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1fc5abcb682dadbe556f67408f1fe7b7e9d61dfb |
--- /dev/null |
+++ b/LayoutTests/inspector/console/console-format-es6.html |
@@ -0,0 +1,45 @@ |
+<html> |
+<head> |
+<script src="../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../http/tests/inspector/console-test.js"></script> |
+<script> |
+ |
+function logSymbolToConsole() |
+{ |
+ var smb = Symbol(); |
+ console.log(smb); |
+ smb = Symbol("a"); |
+ console.log(smb); |
+} |
+ |
+function logSymbolToConsoleWithError() |
+{ |
+ Symbol.prototype.toString = function (arg) { throw new Error(); }; |
+ var smb = Symbol(); |
+ console.log(smb); |
+} |
+ |
+function test() |
aandrey
2014/05/26 11:01:42
can you take inspector/console/console-format.html
Alexandra Mikhaylova
2014/05/27 12:41:37
Done.
|
+{ |
+ InspectorTest.evaluateInPage("logSymbolToConsole()", step1); |
+ |
+ function step1() |
+ { |
+ InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete); |
+ } |
+ |
+ function complete() |
+ { |
+ InspectorTest.dumpConsoleMessages(); |
+ InspectorTest.completeTest(); |
+ } |
+} |
+</script> |
+</head> |
+ |
+<body onload="runTest()"> |
+<p> |
+Tests that console properly displays information about ES6 Symbols. |
+</p> |
+</body> |
+</html> |