RESOLVED FIXED 25302
svg/custom/svg-fonts-in-text-controls.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=25302
Summary svg/custom/svg-fonts-in-text-controls.html is flaky
Ojan Vafai
Reported 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...
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
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
Fix svg-fonts-in-text-controls.js (1.61 KB, patch)
2009-04-20 17:05 PDT, Ojan Vafai
no flags
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:19 PDT, Ojan Vafai
no flags
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:21 PDT, Ojan Vafai
no flags
Fix svg-fonts-in-text-controls.js (2.50 KB, patch)
2009-04-20 17:24 PDT, Ojan Vafai
sam: review+
Ojan Vafai
Comment 1 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(-)
Ojan Vafai
Comment 2 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.
Ojan Vafai
Comment 3 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(-)
mitz
Comment 4 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
Eric Seidel (no email)
Comment 5 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.
Ojan Vafai
Comment 6 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.
Ojan Vafai
Comment 7 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(-)
Ojan Vafai
Comment 8 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(-)
Ojan Vafai
Comment 9 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(-)
Ojan Vafai
Comment 10 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(-)
Ojan Vafai
Comment 11 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?
David Levin
Comment 12 2009-04-20 17:35:43 PDT
Working on landing.
David Levin
Comment 13 2009-04-20 17:59:00 PDT
Note You need to log in before you can comment on or make changes to this bug.