Closed Bug 1430109 Opened 6 years ago Closed 6 years ago

Combine assert.window and assert.contentBrowser to one assertion (assert.open)

Categories

(Remote Protocol :: Marionette, enhancement, P1)

Version 3
enhancement

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: ato, Assigned: ato)

References

Details

Attachments

(1 file)

The window tracking refactoring introduces new “ContentContext”
and “ChromeContext” abstractions that smoothen over the divide
of having to deal with ChromeWindow and <xul:browser>/browser.Context
through convoluted if-conditions.

As part of this change it also unifies the assert.contentBrowser and
assert.window assertions because both ContentContext and ChromeContext
share the same interface.  Because they both expose a “closed”
getter, it is possible to use the same assertion.
Assignee: nobody → ato
Comment on attachment 8942174 [details]
Bug 1430109 - Combine assert.window and assert.contentBrowser.

https://reviewboard.mozilla.org/r/212452/#review218280

A couple of typos.

::: commit-message-d2edd:5
(Diff revision 2)
> +Bug 1430109 - Combine assert.window and assert.contentBrowser. r?maja_zf
> +
> +The forthcoming window tracking refactoring introduces the new
> +abstractions ContentContext and ChromeContext that to a large extent
> +share the same interface.  They make it possible to interct with

s/interct/interact/

::: testing/marionette/assert.js:137
(Diff revision 2)
> - * @param {ChromeWindow} win
> - *     Chrome window to test.
> - * @param {string=} msg
> - *     Custom error message.
>   *
> - * @return {ChromeWindow}
> + * When passed a {@link ChromeContext} this is equivalent to testing

Shouldn't this be "When passed in a ChromeWindow"?
Attachment #8942174 - Flags: review?(mjzffr) → review+
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e8ae7190dd15
Combine assert.window and assert.contentBrowser. r=maja_zf
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b67c5b1e033b
Combine assert.window and assert.contentBrowser. r=maja_zf
I missed updating a reference in testing/marionette/reftest.js.
Flags: needinfo?(ato)
[Mass update] Setting P1 as currently being worked on.
Priority: -- → P1
https://hg.mozilla.org/mozilla-central/rev/b67c5b1e033b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Summary: Combine assert.window and assert.contentBrowser to one assertion → Combine assert.window and assert.contentBrowser to one assertion (assert.open)
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: