Closed Bug 1457115 Opened 6 years ago Closed 6 years ago

Simplify browser_ext_tabs_executeScript_bad test

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(firefox63 fixed)

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

Details

Attachments

(1 file)

browser/components/extensions/test/browser/browser_ext_tabs_executeScript_bad.js currently calls executeScript twice, where the second executeScript call is used to signal completion of the first test. This was done because at the introduction of the test tabs.executeScript did not support callbacks.

In bug 1399348 I added "await" to the first call, to make the test more deterministic. I did not make other changes to see if the intermittent would be fixed by that change only.

Eventually, after getting the desired answer, the test can be simplified further by removing the second executeScript call.

This also applies to the Android test, which is a copy of the above test:
mobile/android/components/extensions/test/mochitest/test_ext_tabs_executeScript_bad.html
Priority: -- → P3
Product: Toolkit → WebExtensions
Attachment #8980364 - Flags: review?(lgreco)
Comment on attachment 8980364 [details]
Bug 1457115 - Simplify *_ext_tabs_executeScript_bad.*

https://reviewboard.mozilla.org/r/246540/#review266822

Looks good to me, thanks!

r=me on green try
Attachment #8980364 - Flags: review?(lgreco) → review+
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/83e6d44180c0
Simplify *_ext_tabs_executeScript_bad.* r=rpl
https://hg.mozilla.org/mozilla-central/rev/83e6d44180c0
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: