Closed Bug 1032036 Opened 12 years ago Closed 12 years ago

Fix jshint error for build/test/integration/multilocale.test.js

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yurenju, Unassigned, Mentored)

References

Details

(Whiteboard: [good first bug][mentor-lang=zh])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1032033 +++
Whiteboard: [good first bug][mentor-lang=zh]
Some guidance on how to approach this bug is available here: https://bugzilla.mozilla.org/show_bug.cgi?id=1032045#c2
Comment on attachment 8466612 [details] [review] https://github.com/mozilla-b2g/gaia/pull/22444 Sudheesh, I left some comments on github please check it and there are some suggestion: 1. makeWithMultilocale can be renamed to makeHelper to make this line shorter. 2. some line for |test(description, callback)| is too long, I prefer this style: > test('make with relative l10n path but without inline & concat', > function(done) { > var localesFilePath = path.join(localesDir, 'languages.json'); > makeHelper(localesFilePath, localesDir, false, done); > } > ); since this is a simple change, please squash to one commit and force push to your pull request again, here is a link for squash commits https://asciinema.org/a/11269 feel free to needinfo? me if you have any question!
Attachment #8466612 - Flags: review?(yurenju.mozilla)
Comment on attachment 8466612 [details] [review] https://github.com/mozilla-b2g/gaia/pull/22444 Fixed this, pushed back a squashed commit.
Attachment #8466612 - Flags: review?(yurenju.mozilla)
Flags: needinfo?(yurenju.mozilla)
Comment on attachment 8466612 [details] [review] https://github.com/mozilla-b2g/gaia/pull/22444 Sudheesh, there are some while space on trail for line 39, 66 and 67 on multilocale.test.js, so r=yurenju if those nits are addressed. please fix them and needinfo? me again for merging to master.
Attachment #8466612 - Flags: review?(yurenju.mozilla) → review+
Flags: needinfo?(yurenju.mozilla)
My text editor doesn't recognize any white space trail on those lines, tried it using vim too for checking in case there were extra trailing spaces. Is there something I am missing there ?
Flags: needinfo?(yurenju.mozilla)
still have 4 white spaces on trail of lines, use this command to remove it: > sed -i 's/[ \t]*$//' build/test/integration/multilocale.test.js
Flags: needinfo?(yurenju.mozilla)
(In reply to Yuren [:yurenju] from comment #7) > still have 4 white spaces on trail of lines, use this command to remove it: > > > sed -i 's/[ \t]*$//' build/test/integration/multilocale.test.js sed: 1: "build/test/integration/ ...": undefined label 'uild/test/integration/multilocale.test.js'
Flags: needinfo?(yurenju.mozilla)
that command does work on Mac, so this is right one: > sed -i '' -E "s/[[:space:]]*$//" build/test/integration/multilocale.test.js
Flags: needinfo?(yurenju.mozilla)
(In reply to Yuren [:yurenju] from comment #9) Fixed now. Thanks. Pushed back onto the same PR 22444
Flags: needinfo?(yurenju.mozilla)
Sudheesh, last two things: 1. squash two commits to one and 2. modify commit title to "Bug 1032036 - Fix jshint error for build/test/integration/multilocale.test.js r=yurenju"
Flags: needinfo?(yurenju.mozilla)
Squashed and fixed via commit 97a609957a8beb90e7d4ab215035307ad2d0aae6 on PR 22444
Flags: needinfo?(yurenju.mozilla)
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(yurenju.mozilla)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: