Closed
Bug 905614
Opened 11 years ago
Closed 11 years ago
[Unit tests] Failed: ClockView updateAnalogClock with type error.
Categories
(Firefox OS Graveyard :: Gaia::Clock, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: iliu, Assigned: rwaldron)
Details
Attachments
(4 files)
1) [clock] ClockView updateAnalogClock "after each" hook:
TypeError: attr is undefined
at (anonymous) (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:125)
at (anonymous) (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:124)
at (anonymous) (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:127)
at wrapper (http://test-agent.gaiamobile.org:8080/common/test/mocha_generators.js:62)
at run (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709)
at next (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3973)
at (anonymous) (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984)
at (anonymous) (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932)
Reporter | ||
Comment 1•11 years ago
|
||
Hi Rick,
Could you please take a look the unit test failed? Thanks.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → waldron.rick
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Ian Liu [:ianliu] from comment #0)
> 1) [clock] ClockView updateAnalogClock "after each" hook:
> TypeError: attr is undefined
> at (anonymous)
> (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:125)
> at (anonymous)
> (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:124)
> at (anonymous)
> (http://clock.gaiamobile.org:8080/test/unit/clock_view_test.js:127)
> at wrapper
> (http://test-agent.gaiamobile.org:8080/common/test/mocha_generators.js:62)
> at run
> (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709)
> at next
> (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3973)
> at (anonymous)
> (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984)
> at (anonymous)
> (http://test-agent.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932)
Strange... this doesn't happen when I run the tests. I wouldn't have made a PR with failing tests.
I've written a patch that wraps the use of `attr.nodeName` in an if statement, so that will prevent the error. Unfortunately, without more information, this is all I can do.
Assignee | ||
Comment 3•11 years ago
|
||
See attached output for both terminal run and browser run
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #790843 -
Flags: review?(iliu)
Comment 8•11 years ago
|
||
Comment on attachment 790843 [details] [review]
https://github.com/mozilla-b2g/gaia/pull/11552
Fast-tracking this to fix a travis error.
Attachment #790843 -
Flags: review?(iliu) → review+
Comment 9•11 years ago
|
||
Follow-up landed in master: https://github.com/mozilla-b2g/gaia/commit/bfa7e855482b68c1414eaef1adaa7233ad5d019f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•11 years ago
|
||
(In reply to Rick Waldron from comment #2)
> Strange... this doesn't happen when I run the tests. I wouldn't have made a
> PR with failing tests.
>
> I've written a patch that wraps the use of `attr.nodeName` in an if
> statement, so that will prevent the error. Unfortunately, without more
> information, this is all I can do.
Rick,
Yes, I have checked the Travis log after you pushed the latest patch. There is no error log about Clock unit test. But the report was not completely since server be terminated by no respond 10 mins. (https://travis-ci.org/mozilla-b2g/gaia/builds/10215978) I have to notify you next time.
Kevin,
Thanks for your reviewing effort quickly.
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•