Closed
Bug 1236554
Opened 10 years ago
Closed 10 years ago
Enable e10s tests in toolkit/components/places/tests/browser
Categories
(Toolkit :: Places, defect, P1)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla46
People
(Reporter: enndeakin, Assigned: enndeakin)
References
(Blocks 1 open bug)
Details
Attachments
(9 files)
|
5.73 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
3.52 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
3.36 KB,
patch
|
mak
:
review-
|
Details | Diff | Splinter Review |
|
4.60 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
4.93 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
3.09 KB,
patch
|
mak
:
review-
|
Details | Diff | Splinter Review |
|
2.36 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
1.09 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
|
4.90 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Comment 2•10 years ago
|
||
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Comment 4•10 years ago
|
||
| Assignee | ||
Comment 5•10 years ago
|
||
| Assignee | ||
Comment 6•10 years ago
|
||
| Assignee | ||
Comment 7•10 years ago
|
||
| Assignee | ||
Comment 8•10 years ago
|
||
| Assignee | ||
Comment 9•10 years ago
|
||
This patch removes Promise.jsm usage.
| Assignee | ||
Updated•10 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → ?
| Assignee | ||
Updated•10 years ago
|
Attachment #8703637 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703638 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703639 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703640 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703641 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703642 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703643 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703644 -
Flags: review?(mak77)
| Assignee | ||
Updated•10 years ago
|
Attachment #8703646 -
Flags: review?(mak77)
| Assignee | ||
Comment 10•10 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b2bd0398b854&selectedJob=15019458
Only browser_bug680727.js remains disabled in this directory.
Updated•10 years ago
|
Comment 11•10 years ago
|
||
Added by mistake? (some bot operation?) as bug 399606 comment #31 (shortly _before_ this bug was reported):
2016-01-04 07:46:47 PST Neil Deakin:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=54e559c97ed1
See also the following comments in that same bug (FIXED in 2008).
Comment 12•10 years ago
|
||
Comment on attachment 8703637 [details] [diff] [review]
browser_settitle
Review of attachment 8703637 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/browser/browser_settitle.js
@@ +22,5 @@
> stmt.finalize();
> }
> }
>
> +add_task(function *()
nit: I think the most common style is to put the * close to function (function* something)
Attachment #8703637 -
Flags: review?(mak77) → review+
Comment 13•10 years ago
|
||
Comment on attachment 8703638 [details] [diff] [review]
browser_notfound.js
Review of attachment 8703638 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/browser/browser_notfound.js
@@ +40,5 @@
> +
> + let newTabPromise = BrowserTestUtils.openNewForegroundTab(gBrowser, TEST_URL);
> + yield Promise.all([visitedPromise, newTabPromise]);
> +
> + PlacesTestUtils.clearHistory();
should yield
Attachment #8703638 -
Flags: review?(mak77) → review+
Comment 14•10 years ago
|
||
Comment on attachment 8703639 [details] [diff] [review]
browser_bug646422.js
Review of attachment 8703639 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/browser/browser_bug646422.js
@@ +18,2 @@
>
> + ok(title, 'Content window should initially have a title.');
can we check what the title is, rather than just check it has any title?
@@ +20,2 @@
>
> + let newtitle = yield new Promise(resolve => {
he scope of the test seems to check history.pushstate causes an onTitleChanged notification, as such I feel like we should start observing before we call pushState?
I wonder if the test is currently passing just because setting the title is async, but sounds intermittent-failure-prone
@@ +46,5 @@
> + return content.document.title;
> + });
> + is(newtitle, title, 'Title after pushstate.');
> +
> + gBrowser.removeTab(tab);
yield PlacesTestUtils.clearHistory();
Attachment #8703639 -
Flags: review?(mak77) → review-
Updated•10 years ago
|
Attachment #8703640 -
Flags: review?(mak77) → review+
Comment 15•10 years ago
|
||
Comment on attachment 8703641 [details] [diff] [review]
browser_visituri
Review of attachment 8703641 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/browser/browser_visituri.js
@@ +24,2 @@
>
> + observerService.addObserver(observer, name, false);
nit: could probably compact to
Services.obs.addObserver(function observe(subject, topic, data) {
...
}, name, false);
@@ +47,5 @@
> stmt.reset();
> }
> }
>
> +add_task(function *()
nit: star towards function.
If you wish, feel free to bring back the braces in line with "function" when touching these tests.
Attachment #8703641 -
Flags: review?(mak77) → review+
Comment 16•10 years ago
|
||
Comment on attachment 8703642 [details] [diff] [review]
browser_visituri_nohistory
Review of attachment 8703642 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/components/places/tests/browser/browser_visituri_nohistory.js
@@ +23,3 @@
>
> + Services.obs.addObserver(observer, name, false);
> + });
nit: may be compacted using Services.obs and just a function
@@ +26,3 @@
> }
>
> +add_task(function *()
nit: arrow towards function
@@ +33,5 @@
>
> + yield BrowserTestUtils.openNewForegroundTab(gBrowser, INITIAL_URL);
> +
> + try {
> + Services.prefs.clearUserPref("places.history.enabled");
this looks wrong, the test should disable history and clear the pref in a registerCleanupFunction
Attachment #8703642 -
Flags: review?(mak77) → review-
Updated•10 years ago
|
Attachment #8703643 -
Flags: review?(mak77) → review+
Updated•10 years ago
|
Attachment #8703644 -
Flags: review?(mak77) → review+
Updated•10 years ago
|
Attachment #8703646 -
Flags: review?(mak77) → review+
Updated•10 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 17•10 years ago
|
||
> ::: toolkit/components/places/tests/browser/browser_bug646422.js
> > + ok(title, 'Content window should initially have a title.');
>
> can we check what the title is, rather than just check it has any title?
>
Since the title comes from the test framework (the title is "mochitest index /") I don't think we should have a test rely on this.
Comment 18•10 years ago
|
||
ok, makes sense.
| Assignee | ||
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
I just enabled ESLint checks in Places, so please check mach eslint does not find errors, or I can do that for you if you didn't set it up yet.
| Assignee | ||
Comment 21•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dd033af22d121e2ce58242e75ebaea4b4574b0b9
Bug 1236554 - enable browser_settitle in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/607774de446ffa77592d6770a51fa7e2ff2a794f
Bug 1236554 - enable browser_notfound.js in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/9409b1908f8d1eee3f3ec0c0b32cec38b813047b
Bug 1236554 - enable browser_bug646422.js in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/530d3160f8e775af4efde14aa9985cfe31333c6d
Bug 1236554 - enable browser_redirect in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/9d2c02559cdf964aa1a8d0da1c61f6b1780cdf9f
Bug 1236554 - enable browser_visituri in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/7d55178b297d3b120ef659c9b24aaf67c24f6d5c
Bug 1236554 - enable browser_visituri_nohistory in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/5b5edd360f70a8a16b73ea895fa168ae8cab4bd5
Bug 1236554 - enable browser_visituri_privatebrowsing_perwindowpb in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b1a1c9bdea3ee9ecfb24f9c678aa6fb2de82937
Bug 1236554 - enable browser_bug399606 in e10s, r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/7fb5dbb033ea9f599e6c625cde297401cf3d5d33
Bug 1236554 - remove Promise.jsm usage, r=mak
Comment 22•10 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/dd033af22d12
https://hg.mozilla.org/mozilla-central/rev/607774de446f
https://hg.mozilla.org/mozilla-central/rev/9409b1908f8d
https://hg.mozilla.org/mozilla-central/rev/530d3160f8e7
https://hg.mozilla.org/mozilla-central/rev/9d2c02559cdf
https://hg.mozilla.org/mozilla-central/rev/7d55178b297d
https://hg.mozilla.org/mozilla-central/rev/5b5edd360f70
https://hg.mozilla.org/mozilla-central/rev/2b1a1c9bdea3
https://hg.mozilla.org/mozilla-central/rev/7fb5dbb033ea
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•