Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: LayoutTests/inspector/console/console-format-es6.html

Issue 295633003: Show information about Symbols in DevTools console. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a test Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/console/console-format-es6-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698