| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
|
| index 82678cd7bed99d71d7388d1956762b8e257432a7..4f2a1bdc762a49d0e4fa3eb8a095f8f0f9ee9400 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
|
| @@ -281,6 +281,30 @@ function test()
|
| evaluateSnippetAndDumpEvaluationDetails(uiSourceCode, context, next);
|
| }
|
| },
|
| +
|
| + function testDangerousNames(next)
|
| + {
|
| + resetSnippetsSettings();
|
| +
|
| + WebInspector.scriptSnippetModel.project().createFile("", null, "", step2.bind(this));
|
| +
|
| + function step2(uiSourceCode)
|
| + {
|
| + uiSourceCode.rename("toString", function() { });
|
| + InspectorTest.showUISourceCode(uiSourceCode,step3.bind(this));
|
| + }
|
| +
|
| + function step3()
|
| + {
|
| + WebInspector.scriptSnippetModel.project().createFile("", null, "", step4.bind(this));
|
| + }
|
| +
|
| + function step4(uiSourceCode)
|
| + {
|
| + uiSourceCode.rename("myfile.toString", function() { });
|
| + InspectorTest.showUISourceCode(uiSourceCode,next);
|
| + }
|
| + }
|
| ]);
|
| };
|
| </script>
|
|
|