Closed Bug 585779 Opened 14 years ago Closed 14 years ago

Make Mozmill-test testDisabledPermissions local

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: u279076)

References

Details

(Whiteboard: [litmus-data])

Attachments

(3 files, 6 obsolete files)

Module: testPrivateBrowsing/testDisabledPermissions.js
Test-page: Use any 1 page from test-files/layout/mozilla*
Blocks: 579965
Assignee: nobody → anthony.s.hughes
Status: NEW → ASSIGNED
Attached patch Patch v1 (default) (obsolete) — Splinter Review
Attachment #465017 - Flags: review?(aaron.train)
Comment on attachment 465017 [details] [diff] [review]
Patch v1 (default)

>-const localTestFolder = collector.addHttpResource('../test-files/');
>+const LOCAL_TEST_FOLDER = collector.addHttpResource('../test-files/');
>+const LOCAL_TEST_PAGES = [
>+                          LOCAL_TEST_FOLDER + 'popups/popups_2.html',
>+                          LOCAL_TEST_FOLDER + 'cookies/cookie_single.html'
>+                         ];

Nit: Indentation, two spaces
Attachment #465017 - Flags: review?(aaron.train) → review-
Attachment #465017 - Attachment is obsolete: true
Attachment #465462 - Flags: review?(aaron.train)
(In reply to comment #3)
> Created attachment 465462 [details] [diff] [review]
> Patch v2 (default)

I forgot to add "r=aaronmt" to the qrefresh message.  I'll be sure to add that prior to check-in.
Comment on attachment 465462 [details] [diff] [review]
Patch v2 (default)

(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 465462 [details] [diff] [review] [details]
> > Patch v2 (default)
> 
> I forgot to add "r=aaronmt" to the qrefresh message.  I'll be sure to add that
> prior to check-in.

Thanks. r+, no issues I can see - on to Henrik
Attachment #465462 - Flags: review?(aaron.train) → review+
Attachment #465462 - Flags: review?(hskupin)
Comment on attachment 465462 [details] [diff] [review]
Patch v2 (default)

> var setupModule = function(module)
> {

nit: Move up the opening brackets.

>   var allow = new elementslib.XPath(controller.window.document, 
>-                                    "/*[name()='window']/*[name()='popupset'][1]/*[name()='menupopup'][4]/*[name()='menuitem'][1]");
>+                                    '/*[name()="window"]' +
>+                                    '/*[name()="popupset"][1]' +
>+                                    '/*[name()="menupopup"][4]' +
>+                                    '/*[name()="menuitem"][1]');

Looking forward to our shared module refactoring which will eliminate all those kinds of wonky strings from the tests.

r=me for the little nit update.
Attachment #465462 - Flags: review?(hskupin) → review+
> Comment on attachment 465462 [details] [diff] [review]
> Patch v2 (default)

Landed on default:
http://hg.mozilla.org/qa/mozmill-tests/rev/e4511cd65637

Does not cleanly apply to mozilla1.9.2 or mozilla1.9.1, patches forthcoming
Attached patch Patch v2 (mozilla1.9.2) (obsolete) — Splinter Review
Attachment #465780 - Flags: review?(aaron.train)
Attached patch Patch v2 (mozilla1.9.1) (obsolete) — Splinter Review
Attachment #465786 - Flags: review?(aaron.train)
Attached patch Patch v2 (mozilla1.9.2) (obsolete) — Splinter Review
Attachment #465780 - Attachment is obsolete: true
Attachment #465788 - Flags: review?(aaron.train)
Attachment #465780 - Flags: review?(aaron.train)
Attachment #465786 - Flags: review?(aaron.train) → review+
Attachment #465788 - Flags: review?(aaron.train) → review+
Attachment #465786 - Flags: review?(hskupin)
Attachment #465788 - Flags: review?(hskupin)
Comment on attachment 465786 [details] [diff] [review]
Patch v2 (mozilla1.9.1)

>+var setupModule = function(module) {
>+var teardownModule = function(module) {

nit: please remove the module parameters from both functions

>-  var property = mozmill.isWindows ? "popupWarningButton.accesskey" : "popupWarningButtonUnix.accesskey";
>-  var accessKey = UtilsAPI.getProperty("chrome://browser/locale/browser.properties", property);
>+  var property = mozmill.isWindows ? "popupWarningButton.accesskey" 
>+                                   : "popupWarningButtonUnix.accesskey";
>+  var accessKey = UtilsAPI.getProperty(
>+    "chrome://browser/locale/browser.properties", 
>+    property
>+  );
>-  controller.keypress(null, accessKey, {ctrlKey: mozmill.isMac, altKey: !mozmill.isMac});
>+  controller.keypress(null, accessKey, 
>+                      {ctrlKey: mozmill.isMac, altKey: !mozmill.isMac});
[..]
>-  var blockImages = new elementslib.ID(controller.window.document, "context-blockimage");
>+  var blockImages = new elementslib.ID(controller.window.document, 
>+                                       "context-blockimage");

Please revert this change to be consistent with default. If you want to change that please file a follow-up bug (before we should get a style guide setup). But don't add new stuff to backported patches.

>-  var historyMode = new elementslib.ID(controller.window.document, "historyMode");
>-  controller.waitForElement(historyMode, gTimeout);
>+  var historyMode = new elementslib.ID(controller.window.document, 
>+                                       "historyMode");
>+  controller.waitForElement(historyMode, TIMEOUT);
>   controller.select(historyMode, null, null, "custom");
>-  controller.sleep(gDelay);
> 
>-  var acceptCookies = new elementslib.ID(controller.window.document, "acceptCookies");
>+  var acceptCookies = new elementslib.ID(controller.window.document, 
>+                                         "acceptCookies");
>   controller.assertChecked(acceptCookies);
> 
>   // Select "ask me every time"
>-  var keepCookies = new elementslib.ID(controller.window.document, "keepCookiesUntil");
>-  controller.waitForElement(keepCookies, gTimeout);
>+  var keepCookies = new elementslib.ID(controller.window.document, 
>+                                       "keepCookiesUntil");
>+  controller.waitForElement(keepCookies, TIMEOUT);
>   controller.select(keepCookies, null, null, 1);
>-  controller.sleep(gDelay);

Same here.
Attachment #465786 - Flags: review?(hskupin) → review-
Comment on attachment 465788 [details] [diff] [review]
Patch v2 (mozilla1.9.2)

Same comments as for the 1.9.1 patch.
Attachment #465788 - Flags: review?(hskupin) → review-
Attached patch Patch v3 (1.9.2) (obsolete) — Splinter Review
Attachment #465786 - Attachment is obsolete: true
Attachment #465788 - Attachment is obsolete: true
Attachment #478141 - Flags: review?(hskupin)
Comment on attachment 478141 [details] [diff] [review]
Patch v3 (1.9.2)

Noticed some cleanup for this patch...new one coming.
Attachment #478141 - Flags: review?(hskupin)
Attachment #478141 - Attachment is obsolete: true
Attachment #478143 - Flags: review?(hskupin)
Attachment #478143 - Flags: review?(hskupin) → review+
(In reply to comment #15)
> Created attachment 478143 [details] [diff] [review]
> Patch v3.1 (1.9.2)

Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/b07ed23483e6 [mozilla1.9.2]
1.9.2 didn't apply cleanly.  Here is the 1.9.1 backport.
Attachment #478386 - Flags: review?(hskupin)
Keywords: checkin-needed
Attachment #478386 - Flags: review?(hskupin) → review+
Attached patch Patch v3.2 (default) (obsolete) — Splinter Review
Final suggested revisions made.
(In reply to comment #18)
> Created attachment 478442 [details] [diff] [review]
> Patch v3.2 (default)
> 
> Final suggested revisions made.

Wrong bug...sorry...
Attachment #478442 - Attachment is obsolete: true
(In reply to comment #17)
> Created attachment 478386 [details] [diff] [review]
> Patch v3.1 (1.9.1)
> 
> 1.9.2 didn't apply cleanly.  Here is the 1.9.1 backport.

Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/bdf38b387ce5 [mozilla1.9.1]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Move of Mozmill Test related project bugs to newly created components. You can
filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: