Skip to content
  • vsevik@chromium.org's avatar
    Web Inspector: UISourceCode commitWorkingCopy should not fail when original... · 1a6d5b21
    vsevik@chromium.org authored
    Web Inspector: UISourceCode commitWorkingCopy should not fail when original script had syntax error.
    https://bugs.webkit.org/show_bug.cgi?id=97272
    
    Reviewed by Pavel Feldman.
    
    This patch is based on patch by John J. Barton.
    
    Source/WebCore:
    
    * inspector/front-end/JavaScriptSource.js:
    (WebInspector.JavaScriptSource.prototype.workingCopyCommitted): added rawLocation null check.
    
    LayoutTests:
    
    * http/tests/inspector/live-edit-test.js:
    (initialize_LiveEditTest.InspectorTest.replaceInSource):
    (initialize_LiveEditTest):
    * inspector/debugger/live-edit-expected.txt:
    * inspector/debugger/live-edit.html:
    * inspector/debugger/resources/edit-me-syntax-error.js: Added.
    (syntaxError):
    * platform/chromium/TestExpectations: re-enabled the test.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130287 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a6d5b21