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)
DevTools Graveyard
Scratchpad
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)
|
1.56 KB,
patch
|
lpy
:
review+
|
Details | Diff | Splinter Review |
We're trying to remove __noSuchMethod__ usage from the tree, so its usage in this test should be removed.
| Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → pylaurent1314
Attachment #8335780 -
Flags: review?(bbenvie)
| Reporter | ||
Comment 2•12 years ago
|
||
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)
| Assignee | ||
Comment 3•12 years ago
|
||
Hello benvie, what do you mean of mock method?
| Reporter | ||
Comment 4•12 years ago
|
||
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.
| Assignee | ||
Comment 5•12 years ago
|
||
V2
Attachment #8335780 -
Attachment is obsolete: true
Attachment #8336544 -
Flags: review?(bbenvie)
| Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 8336544 [details] [diff] [review]
bug941089.patch
Review of attachment 8336544 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #8336544 -
Flags: review?(bbenvie) → review+
| Reporter | ||
Comment 7•12 years ago
|
||
You'll need to rebase this patch because another change to this test landed in the last few days.
| Assignee | ||
Comment 8•12 years ago
|
||
final version
Attachment #8336544 -
Attachment is obsolete: true
Attachment #8338166 -
Flags: review+
| Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 9•12 years ago
|
||
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
Updated•12 years ago
|
Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js] → [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]][qa-]
Updated•8 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•