Bug 33649
Summary: | Wrong code in LayoutTests/fast/dom/timer-clear-interval-in-handler-and-generate-error.html | ||
---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | abarth |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Kent Tamura
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);".
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Kent Tamura
(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?