Closed
Bug 988270
Opened 10 years ago
Closed 10 years ago
The unit test of AppWindowManager will break other tests in system app (e.g. bootstrap)
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: lchang, Assigned: lchang)
References
Details
Attachments
(1 file)
You will see following error message under unit testing process if you run "bootstrap_test.js" and "app_window_manager_test.js" at the same time. -------------------------------------------- [system] "before each" hook Error: TypeError: this._activeApp is undefined (http://system.gaiamobile.org:8080/js/app_window_manager.js?time=1395834285802:573) at onerror (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4959:7) at (anonymous) (http://system.gaiamobile.org:8080/test/unit/bootstrap_test.js:136:9) at wrapper (http://system.gaiamobile.org:8080/common/test/mocha_generators.js:62:13) at run (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7) at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3973:5) at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984:5) at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932:28)
Assignee | ||
Comment 1•10 years ago
|
||
That's because we don't call "removeEventListener" in AppWindowManager after test is finished.
Updated•10 years ago
|
Component: Gaia::System → Gaia::System::Window Mgmt
Assignee | ||
Comment 2•10 years ago
|
||
Alive, could you please help to review it? Thanks!
Attachment #8397563 -
Flags: review?(alive)
Updated•10 years ago
|
Attachment #8397563 -
Flags: review?(alive) → review+
Assignee | ||
Comment 3•10 years ago
|
||
travis passed: https://travis-ci.org/mozilla-b2g/gaia/builds/21645175 merged in gaia master: https://github.com/mozilla-b2g/gaia/commit/77fd538d3df846c0888cf971af3ae10df8558452 Alive, Thanks!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
status-b2g-v2.0:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•