Closed
Bug 584995
Opened 15 years ago
Closed 15 years ago
waitForFocus makes test analysis lie about the number of tests run
Categories
(Testing :: Mochitest, defect)
Testing
Mochitest
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla2.0b4
People
(Reporter: dao, Assigned: dao)
Details
Attachments
(2 files)
|
4.04 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
|
1.03 KB,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Create this browser chrome test:
function test() {
ok(true, 1);
}
2. Run it.
Expected Result:
> Browser Chrome Test Summary
> Passed: 1
Actual Result:
> Browser Chrome Test Summary
> Passed: 4
Attachment #463484 -
Flags: review?(enndeakin)
Updated•15 years ago
|
Attachment #463484 -
Flags: review?(enndeakin) → review+
| Assignee | ||
Comment 1•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b4
Comment 2•15 years ago
|
||
This change has made the waitForFocus output to not appear in the log, making it difficult to investigate focus issues in tests.
| Assignee | ||
Comment 3•15 years ago
|
||
Last I checked it did show up in browser chrome test logs. Apparently TEST-INFO is also commonly used in other test suites according to MXR, so this should be working in theory.
| Assignee | ||
Comment 4•15 years ago
|
||
Maybe you're referring to a log different from tinderbox output?
Comment 5•15 years ago
|
||
Looks like only the browser-chrome tests have this issue.
For example, a recent log: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1281973136.1281973882.23070.gz&fulltext=1
| Assignee | ||
Comment 6•15 years ago
|
||
Yeah. I'll double-check if I see it locally with browser chrome tests.
| Assignee | ||
Comment 7•15 years ago
|
||
There's no parentrunner for browser chrome tests, so SimpleTest._logEnabled is undefined. As far as I can see, the original SimpleTest.ok calls worked because browser-test.js overwrites this and similar SimpleTest methods with its own versions.
Attachment #466377 -
Flags: review?(enndeakin)
Updated•15 years ago
|
Attachment #466377 -
Flags: review?(enndeakin) → review+
| Assignee | ||
Comment 8•15 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•