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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iliu, Assigned: rwaldron)

Details

Attachments

(4 files)

Hi Rick,
Could you please take a look the unit test failed? Thanks.
Assignee: nobody → waldron.rick
(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.
See attached output for both terminal run and browser run
Attached file 905614.txt
Attached image 905614.png
Attached image 905614-clockview.png
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+
Follow-up landed in master: https://github.com/mozilla-b2g/gaia/commit/bfa7e855482b68c1414eaef1adaa7233ad5d019f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
(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.
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.

Attachment

General

Created:
Updated:
Size: