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

Unified Diff: LayoutTests/inspector/console/console-native-function.html

Issue 23861007: DevTools: Fix console output for native functions like Math.random (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 7 years, 3 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 | « no previous file | LayoutTests/inspector/console/console-native-function-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-native-function.html
diff --git a/LayoutTests/inspector/console/console-eval.html b/LayoutTests/inspector/console/console-native-function.html
similarity index 61%
copy from LayoutTests/inspector/console/console-eval.html
copy to LayoutTests/inspector/console/console-native-function.html
index 64a0edbf092e1e4659040f4f6395d7bceca2fc8a..c6b81fa4ac1434a8c90eaa875aa2c8afb69c8af0 100644
--- a/LayoutTests/inspector/console/console-eval.html
+++ b/LayoutTests/inspector/console/console-native-function.html
@@ -3,25 +3,20 @@
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
-
function test()
{
- InspectorTest.evaluateInConsole("1+2", step2);
+ InspectorTest.evaluateInConsole("Math.random", step1);
- function step2()
+ function step1(current, total)
{
+ InspectorTest.expandConsoleMessages();
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
}
-
</script>
</head>
-
<body onload="runTest()">
-<p>
-Tests that simple evaluations may be performed in the console.
-</p>
-
+<p>Tests that console dumps native function without exception.</p>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-native-function-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698