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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html

Issue 1921413002: [DevTools] Move inspect and copy to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | third_party/WebKit/LayoutTests/inspector/console/console-command-copy-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html b/third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html
index bbe56bb439d181b21c98baa6ab5df0e6824c2da2..943529d8f93daec2649338a0fca3ecf33efcc54a 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-command-copy.html
@@ -6,31 +6,35 @@
function test()
{
+ var results = [];
var testCases = [
"copy('qwerty')",
"copy(document.querySelector('p'))",
"copy({foo:'bar'})",
"var a = {}; a.b = a; copy(a)",
- "copy(document.all)",
"copy(NaN)",
"copy(Infinity)",
"copy(null)",
"copy(undefined)",
"copy(1)",
"copy(true)",
- "copy(false)"
+ "copy(false)",
+ "copy(null)"
];
function copyText(text) {
- InspectorTest.addResult("InspectorFrontendHost.copyText: " + text);
+ results.push(text);
+ if (results.length === testCases.length) {
+ results.sort();
+ for (var result of results)
+ InspectorTest.addResult("InspectorFrontendHost.copyText: " + result);
+ InspectorTest.completeTest();
+ }
}
InspectorFrontendHost.copyText = copyText;
-
for (var i = 0; i < testCases.length; ++i)
InspectorTest.RuntimeAgent.evaluate(testCases[i], "", true);
-
- InspectorTest.RuntimeAgent.evaluate("copy(null)", "", true, InspectorTest.completeTest.bind(InspectorTest));
}
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-command-copy-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698