Closed
Bug 1253381
Opened 8 years ago
Closed 8 years ago
Create JavascriptBridgeTest and port existing tests
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Firefox 48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: mcomella, Assigned: mcomella)
References
Details
Attachments
(3 files)
We have some code duplication in tests that use JavascriptBridge where they set up JavascriptBridge in `setUp` & `tearDown` – it'd be great to unify that.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37975/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/37975/
Attachment #8726408 -
Flags: review?(nalexander)
Assignee | ||
Comment 2•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37977/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/37977/
Attachment #8726409 -
Flags: review?(nalexander)
Assignee | ||
Comment 3•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/37979/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/37979/
Attachment #8726410 -
Flags: review?(nalexander)
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8726408 [details] MozReview Request: Bug 1253381 - Add JavascriptBridgeTest. r=sebastian Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37975/diff/1-2/
Attachment #8726408 -
Attachment description: MozReview Request: Bug 1253381 - Add JavascriptBridgeTest. r=nalexander → MozReview Request: Bug 1253381 - Add JavascriptBridgeTest. r=sebastian
Attachment #8726408 -
Flags: review?(nalexander) → review?(s.kaspari)
Assignee | ||
Updated•8 years ago
|
Attachment #8726409 -
Attachment description: MozReview Request: Bug 1253381 - Add JavascriptTest javadoc to explain test. r=nalexander → MozReview Request: Bug 1253381 - Add JavascriptTest javadoc to explain test. r=sebastian
Attachment #8726409 -
Flags: review?(nalexander) → review?(s.kaspari)
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8726409 [details] MozReview Request: Bug 1253381 - Add JavascriptTest javadoc to explain test. r=sebastian Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37977/diff/1-2/
Assignee | ||
Comment 6•8 years ago
|
||
Comment on attachment 8726410 [details] MozReview Request: Bug 1253381 - Move existing JavascriptBridge tests to JavascriptBridgeTest. r=sebastian Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37979/diff/1-2/
Attachment #8726410 -
Attachment description: MozReview Request: Bug 1253381 - Move existing JavascriptBridge tests to JavascriptBridgeTest. r=nalexander → MozReview Request: Bug 1253381 - Move existing JavascriptBridge tests to JavascriptBridgeTest. r=sebastian
Attachment #8726410 -
Flags: review?(nalexander) → review?(s.kaspari)
Assignee | ||
Comment 7•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7edde4fa1fbb
Comment 8•8 years ago
|
||
Comment on attachment 8726408 [details] MozReview Request: Bug 1253381 - Add JavascriptBridgeTest. r=sebastian https://reviewboard.mozilla.org/r/37975/#review35009 ::: mobile/android/tests/browser/robocop/src/org/mozilla/gecko/tests/JavascriptBridgeTest.java:25 (Diff revision 2) > + // A protected field for easy access by sub-classes and a private field so > + // we can close the JS bridge if the sub-classes re-assign the protected field. > + // Not very Java-like but simpler than a method. > + private JavascriptBridge _js; > + protected JavascriptBridge js; Wouldn't it be simpler to just expose this via a getter method? This would prevent re-assigning.
Attachment #8726408 -
Flags: review?(s.kaspari) → review+
Comment 9•8 years ago
|
||
Comment on attachment 8726409 [details] MozReview Request: Bug 1253381 - Add JavascriptTest javadoc to explain test. r=sebastian https://reviewboard.mozilla.org/r/37977/#review35011
Attachment #8726409 -
Flags: review?(s.kaspari) → review+
Comment 10•8 years ago
|
||
Comment on attachment 8726410 [details] MozReview Request: Bug 1253381 - Move existing JavascriptBridge tests to JavascriptBridgeTest. r=sebastian https://reviewboard.mozilla.org/r/37979/#review35015
Attachment #8726410 -
Flags: review?(s.kaspari) → review+
Assignee | ||
Comment 11•8 years ago
|
||
https://reviewboard.mozilla.org/r/37975/#review35009 > Wouldn't it be simpler to just expose this via a getter method? This would prevent re-assigning. I was hoping to make accessing the `JavascriptBridge` easier via `js` rather than `getJS()`, but it's confusing and breaks convention – I'll add the getter.
Assignee | ||
Comment 12•8 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/97f90224e529b0f3d9828a860ff9114b21c8971a Bug 1253381 - Add JavascriptBridgeTest. r=sebastian https://hg.mozilla.org/integration/fx-team/rev/6d663a8715cf1441e237b2a0569e4426ac76bde3 Bug 1253381 - Add JavascriptTest javadoc to explain test. r=sebastian https://hg.mozilla.org/integration/fx-team/rev/41f8ef49436f3bd46b2f858c254f9c821a523b1d Bug 1253381 - Move existing JavascriptBridge tests to JavascriptBridgeTest. r=sebastian
Comment 13•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/97f90224e529 https://hg.mozilla.org/mozilla-central/rev/6d663a8715cf https://hg.mozilla.org/mozilla-central/rev/41f8ef49436f
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•