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)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 7

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
No description provided.
Attachment #541935 - Flags: review?(paul)
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+
It's intentionally not a const, so that the scope can be cleared after each test.
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.
The check was pointless. No sessionstore test would pass if the service wasn't available.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 7
Blocks: 669077
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.

Attachment

General

Created:
Updated:
Size: