Bug 25302 - svg/custom/svg-fonts-in-text-controls.html is flaky
Summary: svg/custom/svg-fonts-in-text-controls.html is flaky
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Ojan Vafai
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 15:35 PDT by Ojan Vafai
Modified: 2009-04-20 22:04 PDT (History)
2 users (show)

See Also:


Attachments
Fix svg/custom/svg-fonts-in-text-controls-expected.txt and add waitUntilDone support to js-test-pre/post.js. (4.99 KB, patch)
2009-04-20 15:43 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Fix svg/custom/svg-fonts-in-text-controls-expected.txt and add waitUntilDone support to js-test-pre/post.js. (5.00 KB, patch)
2009-04-20 15:51 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Fix svg-fonts-in-text-controls.js (1.61 KB, patch)
2009-04-20 17:05 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:19 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:21 PDT, Ojan Vafai
no flags Details | Formatted Diff | Diff
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:24 PDT, Ojan Vafai
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2009-04-20 15:35:31 PDT
Need to make sure that a layout happens before we measure the elements in this test and that we do the measuring on load, not before. In order to make this happen, we need to give js-test-pre/post.js waitUntilDone functionality. Patch forthcoming...
Comment 1 Ojan Vafai 2009-04-20 15:43:37 PDT
Created attachment 29626 [details]
Fix svg/custom/svg-fonts-in-text-controls-expected.txt and add waitUntilDone support to js-test-pre/post.js.

 6 files changed, 65 insertions(+), 9 deletions(-)
Comment 2 Ojan Vafai 2009-04-20 15:44:16 PDT
This is a proposed patch. Somehow this cases 3 other tests to fail in ways I don't get. But, while I look into that, I'd like feedback on the general approach.
Comment 3 Ojan Vafai 2009-04-20 15:51:16 PDT
Created attachment 29627 [details]
Fix svg/custom/svg-fonts-in-text-controls-expected.txt and add waitUntilDone support to js-test-pre/post.js.

 6 files changed, 65 insertions(+), 9 deletions(-)
Comment 4 mitz 2009-04-20 15:57:21 PDT
DRT does not dump before the load event fires, so I don't understand why explicit waitUntilDone/notifyDone are required
Comment 5 Eric Seidel (no email) 2009-04-20 16:10:15 PDT
(In reply to comment #4)
> DRT does not dump before the load event fires, so I don't understand why
> explicit waitUntilDone/notifyDone are required

Interesting.  I wonder if this is a "recent" improvement in DRT (in the last few years)... I don't remember it used to working that way.
Comment 6 Ojan Vafai 2009-04-20 17:05:26 PDT
OK. I am more and more convinced that the proper fix is to
a) do the successfullyParsed check at window load time.
b) add a way to have waitUntilDone/notifyDone work properly with JS tests.

In order to fix this test, I'd need to do both A and B because A causes the svg/dynamic-updates tests to fail and the fix to their failures is to do B.

In short, I'm just going to commit a new set of results for svg-fonts-in-text-controls.html that has the success messages in the wrong order for now to get the tree green. Then I'll work on the proper fix after.
Comment 7 Ojan Vafai 2009-04-20 17:05:42 PDT
Created attachment 29631 [details]
Fix svg-fonts-in-text-controls.js

 2 files changed, 11 insertions(+), 4 deletions(-)
Comment 8 Ojan Vafai 2009-04-20 17:19:04 PDT
Created attachment 29632 [details]
Fix svg-fonts-in-text-controls.js

 3 files changed, 29 insertions(+), 4 deletions(-)
Comment 9 Ojan Vafai 2009-04-20 17:21:09 PDT
Created attachment 29633 [details]
Fix svg-fonts-in-text-controls.js

 3 files changed, 29 insertions(+), 4 deletions(-)
Comment 10 Ojan Vafai 2009-04-20 17:24:48 PDT
Created attachment 29634 [details]
Fix svg-fonts-in-text-controls.js

 3 files changed, 29 insertions(+), 4 deletions(-)
Comment 11 Ojan Vafai 2009-04-20 17:25:42 PDT
eseidel r+'ed this in person, but had to run. Can someone commit this for me so the tree can go green?
Comment 12 David Levin 2009-04-20 17:35:43 PDT
Working on landing.

Comment 13 David Levin 2009-04-20 17:59:00 PDT
Committed <http://trac.webkit.org/changeset/42690>