Closed
Bug 851860
Opened 12 years ago
Closed 12 years ago
SyntaxError in Calendar unit test scripts
Categories
(Firefox OS Graveyard :: Gaia::Calendar, defect)
Firefox OS Graveyard
Gaia::Calendar
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timdream, Assigned: jlal)
Details
Attachments
(1 file)
I found this with |find apps | grep '\.js$' | xargs -L 1 js -c|, not sure if it's intentional because of some test script black magic.
apps/calendar/test/integration/atoms/get_pos.js:6:0 SyntaxError: return not in function:
apps/calendar/test/integration/atoms/get_pos.js:6:0 return (function(element) {
apps/calendar/test/integration/atoms/get_pos.js:6:0 ^
apps/calendar/test/unit/view_test.js:17:0 SyntaxError: invalid label:
apps/calendar/test/unit/view_test.js:17:0 subject.selectors: {
apps/calendar/test/unit/view_test.js:17:0 ............^
I also fail to understand what the scripts involved do, so I couldn't fix it.
Flags: needinfo?(jlal)
| Reporter | ||
Updated•12 years ago
|
Summary: SyntaxError in Calendar unit script scripts → SyntaxError in Calendar unit test scripts
| Assignee | ||
Comment 1•12 years ago
|
||
Umm... I don't even have the slightest clue why its failing now... doing blame shows this error was introduced Oct 26th 2012... I have a patch coming very shortly...
Flags: needinfo?(jlal)
| Assignee | ||
Comment 2•12 years ago
|
||
Pointer to Github pull-request
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 725838 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8692
OK, this fixes the view test... the integration test atom is read as a flat file then sent over the wire for marionette uses so that is fine...
Again- maybe this breaks the built maybe it does not its a really old but bad syntax error that should never have been introduced.
Attachment #725838 -
Flags: review?(timdream)
| Assignee | ||
Comment 4•12 years ago
|
||
Landed here: https://github.com/mozilla-b2g/gaia/commit/0a45dccd0e8fb3a4c8c171794be83ffb1ff18439
It seems to have fixed the travis build... I somehow doubt this was the direct cause of the breakage (this code has been there with the syntax error some how for months).
Thanks for figuring this out Tim!
| Reporter | ||
Comment 5•12 years ago
|
||
Comment on attachment 725838 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/8692
r+ since Travis CI returns green (and you've merged the pull request anyway :P)
Attachment #725838 -
Flags: review?(timdream) → review+
| Reporter | ||
Comment 6•12 years ago
|
||
Hey, the pull request doesn't fix
apps/calendar/test/integration/atoms/get_pos.js
. Is that intentional? I'll keep this bug open.
Assignee: nobody → jlal
Flags: needinfo?(jlal)
| Assignee | ||
Comment 7•12 years ago
|
||
Hey Tim, yes this is intentional as I mentioned the atoms are read as flat files and sent over the wire via marionette and then are evaluated in a non-standard JS environment to work their magic.
Going to close this now.
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(jlal)
Resolution: --- → FIXED
| Reporter | ||
Comment 8•12 years ago
|
||
(In reply to James Lal [:lightsofapollo] from comment #7)
> Hey Tim, yes this is intentional as I mentioned the atoms are read as flat
> files and sent over the wire via marionette and then are evaluated in a
> non-standard JS environment to work their magic.
>
> Going to close this now.
Sorry about mis-reading your comment :-/ ... busy week.
You need to log in
before you can comment on or make changes to this bug.
Description
•