Closed
Bug 667202
Opened 14 years ago
Closed 14 years ago
Provide 'ss' centrally for all browser-chrome sessionstore tests
Categories
(Firefox :: Session Restore, defect)
Firefox
Session Restore
Tracking
()
VERIFIED
FIXED
Firefox 7
People
(Reporter: dao, Assigned: dao)
References
Details
Attachments
(1 file)
63.85 KB,
patch
|
zpao
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #541935 -
Flags: review?(paul)
Comment 1•14 years ago
|
||
Comment on attachment 541935 [details] [diff] [review]
patch
I was going to go the opposite direction with bug 664325, but this works too. Make ss a const and we're good.
Attachment #541935 -
Flags: review?(paul) → review+
Assignee | ||
Comment 3•14 years ago
|
||
It's intentionally not a const, so that the scope can be cleared after each test.
Comment 4•14 years ago
|
||
Comment on attachment 541935 [details] [diff] [review]
patch
>diff --git a/browser/components/sessionstore/test/browser/browser_350525.js b/browser/components/sessionstore/test/browser/browser_350525.js
>--- a/browser/components/sessionstore/test/browser/browser_350525.js
>+++ b/browser/components/sessionstore/test/browser/browser_350525.js
>@@ -3,29 +3,19 @@ function test() {
>
> function test(aLambda) {
> try {
> return aLambda() || true;
> }
> catch (ex) { }
> return false;
> }
>-
>- // test setup
>- let tabbrowser = gBrowser;
>+
> waitForExplicitFinish();
>-
>- // component
>- let ssComponent = test(function() Cc["@mozilla.org/browser/sessionstore;1"]);
>- ok(ssComponent, "reference the sessionstore component");
>-
>- // service
>- let ss = test(function() ssComponent.getService(Ci.nsISessionStore));
>- ok(ss, "reference the sessionstore service");
>-
>+
This one looks odd to me as the test _was_ the check of references to the component and service.
Assignee | ||
Comment 5•14 years ago
|
||
The check was pointless. No sessionstore test would pass if the service wasn't available.
Assignee | ||
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7
Comment 7•14 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a2) Gecko/20110706 Firefox/7.0a2
Verified fixed - detailed by the changest in comment 6.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•