Bug 33649 - Wrong code in LayoutTests/fast/dom/timer-clear-interval-in-handler-and-generate-error.html
Summary: Wrong code in LayoutTests/fast/dom/timer-clear-interval-in-handler-and-genera...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 21:32 PST by Kent Tamura
Modified: 2010-01-13 21:34 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2010-01-13 21:32:09 PST
timer-clear-interval-in-handler-and-generate-error.html added by Bug#27703 has wrong code:

| function log(msg) {
|   var elmt = document.createElement("div");
|   elmt.textContent = msg;
|   document.body.appendChild(msg);

Probably the last line should be "document.body.appendChild(elmt);".
Comment 1 Kent Tamura 2010-01-13 21:34:30 PST
(In reply to comment #0)
> | function log(msg) {
> |   var elmt = document.createElement("div");
> |   elmt.textContent = msg;
> |   document.body.appendChild(msg);
> 
> Probably the last line should be "document.body.appendChild(elmt);".

If the code is corrected to it, the test shows simply "PASS" because document.body exists at that time.  Is it intended result?