Open Bug 856499 Opened 13 years ago Updated 4 years ago

test_bug847890_paintFlashing.html does not actually detect painting due to changes

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

Details

Attachments

(1 file)

Currently test_bug847890_paintFlashing.html uses the following logic: 1) Call snapshotWindow() to capture "before" view state 2) Set paintFlashing = true 3) Modify the page content 4) Call snapshotWindow() to capture "after" view state 5) Compare snapshots to verify that paint flashing occurred. Unfortunately, this does not actually test if paint flashing occurred due to changes to the page. The snapshotWindow() function works by painting the current content into it a new Canvas element. This means that paint flashing will always be triggered. The end effect of this is really just that the test provides a misleading sense of what is being validated. It may be worth restructuring it without content changes and a comment that describes how snapshotWindow() triggers a paint.
Attachment #731743 - Attachment is patch: true
Blocks: 847890
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: