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