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

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

Issue 102433002: [DevTools] Improved console.copy command to handle JSON.stringifyable objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed indentation. Created 7 years 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-command-copy-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-command-copy.html
diff --git a/LayoutTests/inspector/console/console-command-copy.html b/LayoutTests/inspector/console/console-command-copy.html
index 6e21c2a9e3ef883914355d7d82ef964939f6c97d..fe2a3f4394f4af48b3a758dd6bcd6c95eddd0e04 100644
--- a/LayoutTests/inspector/console/console-command-copy.html
+++ b/LayoutTests/inspector/console/console-command-copy.html
@@ -6,13 +6,31 @@
function test()
{
- InspectorTest.evaluateInConsole("copy('qwerty')");
- InspectorFrontendHost.copyText = copyText;
+ 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)"
+ ];
function copyText(text) {
InspectorTest.addResult("InspectorFrontendHost.copyText: " + text);
- InspectorTest.completeTest();
}
+
+ InspectorFrontendHost.copyText = copyText;
+
+ for (var i = 0; i < testCases.length; ++i)
+ RuntimeAgent.evaluate(testCases[i], "", true);
+
+ RuntimeAgent.evaluate("copy(null)", "", true, InspectorTest.completeTest.bind(InspectorTest));
}
</script>
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-command-copy-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698