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> |