Chromium Code Reviews| 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..a9df9c261dc281331292e5568bfbf30d1df73a68 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)); |
|
aandrey
2013/12/06 11:08:01
wrong indent
Dmitry Zvorygin
2013/12/06 11:28:28
Done.
|
| } |
| </script> |