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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-native-function-to-string.html

Issue 1617393002: [DevTools] Not use with statement for evaluated console command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix $1-$4, $_ Created 4 years, 11 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
Index: third_party/WebKit/LayoutTests/inspector/console/console-native-function-to-string.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-native-function-to-string.html b/third_party/WebKit/LayoutTests/inspector/console/console-native-function-to-string.html
deleted file mode 100644
index 84bf83c3b8b3dcd5820b0e6dfacde6e36100c219..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/console/console-native-function-to-string.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/console-test.js"></script>
-<script>
-
-function rightPadding(str, minLength)
-{
- str += Array(minLength).join(" ");
- return str.substr(0, minLength) + str.substr(minLength).trim();
-}
-
-function test()
-{
- function printCommandLineAPI()
- {
- var properties = [];
- for (var p in __commandLineAPI) {
- if (/^\$(_|\d+)$/.test(p))
- continue;
- properties.push(p);
- }
- properties.sort();
- var msgs = [];
- properties.forEach(function(p) {
- msgs.push(rightPadding(p, 20) + ": " + eval(p));
- });
- output("CommandLineAPI\n\n"+ msgs.join("\n"));
- }
-
- InspectorTest.evaluateInConsole("(" + printCommandLineAPI + ")()");
- InspectorTest.completeTest();
-}
-
-</script>
-</head>
-<body onload="runTest()">
- <p>Tests that command-line API methods behave similarly to native code by returning '[Command Line API]' via toString().</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698