Skip to content

Conversation

@sebaslv
Copy link
Contributor

@sebaslv sebaslv commented Oct 20, 2014

In-memory changes were not being pushed when launching a new session of LiveDevelopment.

Inconsistencies between method CSSDocument._updateBrowser on current implementation and LiveCSSDocument.updateBrowser on this new implementation prevented it to be invoked at BaseServer._setDocInfo.

A new test for it is included. This PR is on top of #26.

to be used for developing CSS Editing unit tests.
just a couple of small changes.
In-memory changes are now being pushed when launching a new session of
LiveDevelopment. Remove inconsistencies on method names between livedev
implementations.
@redmunds
Copy link
Collaborator

I'm getting errors in new unit tests on Win7 with Firefox as default browser:

should push changes through browser connection

TypeError: Cannot call method 'replace' of undefined
    at fixSpaces (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/src/extensions/dev/brackets-livedev2/unittests.js:53:24)
    at null.<anonymous> (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/src/extensions/dev/brackets-livedev2/unittests.js:268:28)
    at jasmine.Block.execute (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:1064:17)
    at jasmine.Queue.next_ (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2096:31)
    at onComplete (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2092:18)
    at jasmine.WaitsForBlock.execute (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2576:5)
    at file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2590:12

should push in memory css changes made before the session starts

TypeError: Cannot call method 'replace' of undefined
    at fixSpaces (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/src/extensions/dev/brackets-livedev2/unittests.js:53:24)
    at null.<anonymous> (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/src/extensions/dev/brackets-livedev2/unittests.js:312:28)
    at jasmine.Block.execute (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:1064:17)
    at jasmine.Queue.next_ (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2096:31)
    at onComplete (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2092:18)
    at jasmine.WaitsForBlock.execute (file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2576:5)
    at file:///C:/Users/redmunds/dev/github/brackets-shell/Release/dev/test/thirdparty/jasmine-core/jasmine.js:2590:12

liveDoc.getSourceFromBrowser() is either failing or resolving to undefined.

@redmunds
Copy link
Collaborator

I verified that tests pass on MacOSX 10.8/Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants