Closed Bug 941089 Opened 12 years ago Closed 12 years ago

Remove __noSuchMethod__ from scratchpad/test/browser_scratchpad_ui.js

Categories

(DevTools Graveyard :: Scratchpad, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 28

People

(Reporter: bbenvie, Assigned: lpy)

Details

(Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]][qa-])

Attachments

(1 file, 2 obsolete files)

We're trying to remove __noSuchMethod__ usage from the tree, so its usage in this test should be removed.
Attached patch bug941089.patch (obsolete) — Splinter Review
Assignee: nobody → pylaurent1314
Attachment #8335780 - Flags: review?(bbenvie)
Comment on attachment 8335780 [details] [diff] [review] bug941089.patch Review of attachment 8335780 [details] [diff] [review]: ----------------------------------------------------------------- This won't work. This removes the usage of __noSuchMethod__, but it doesn't replace it with anything. You need to replace the method being tested with a mock method or something to register that the menu item successfully worked.
Attachment #8335780 - Flags: review?(bbenvie)
Hello benvie, what do you mean of mock method?
You need to replace the code > delete sp[methodName]; with something like > sp[methodName] = () => { > lastMethodCalled = true; > }; When menu.doCommand() is run it's going to attempt to call the scratchpad method. You need to make sure that has happened.
Attached patch bug941089.patch (obsolete) — Splinter Review
V2
Attachment #8335780 - Attachment is obsolete: true
Attachment #8336544 - Flags: review?(bbenvie)
Comment on attachment 8336544 [details] [diff] [review] bug941089.patch Review of attachment 8336544 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #8336544 - Flags: review?(bbenvie) → review+
You'll need to rebase this patch because another change to this test landed in the last few days.
Attached patch bug941089.patchSplinter Review
final version
Attachment #8336544 - Attachment is obsolete: true
Attachment #8338166 - Flags: review+
Keywords: checkin-needed
Flags: in-testsuite-
Keywords: checkin-needed
Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js] → [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js][fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js][fixed-in-fx-team] → [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]
Target Milestone: --- → Firefox 28
Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js] → [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]][qa-]
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: