Bug 120899

Summary: Move LayoutTests/fast/js to LayoutTests/js
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: Tools / TestsAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, bdakin, benjamin, cfleizach, commit-queue, dbates, dmazzoni, dpranke, eflews.bot, eric.carlson, fpizlo, glenn, gyuyoung.kim, hta, hyatt, jdiggs, jer.noble, mario, rniwa, sergio, simon.fraser, spenap, tommyw
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 120957, 120958, 120960, 120961, 120962, 120968, 120970, 120973, 120975, 120976, 120977, 120978, 120980, 120981, 120982, 120985, 120986, 120988    
Bug Blocks:    
Attachments:
Description Flags
Change LayoutTests' f*-j* files to use pre and post js files in LayoutTests/resources
none
Change LayoutTests' m*-p* files to use pre and post js files in LayoutTests/resources.
none
Change LayoutTests' s* files to use pre and post js files in LayoutTests/resources.
none
Change LayoutTests' t* files to use pre and post js files in LayoutTests/resources.
none
Change LayoutTests' u*-w* files to use pre and post js files in LayoutTests/resources.
none
Change some remaining fast/* files to use pre and post js files in LayoutTests/resources.
none
Point Tools scripts to LayoutTests/resources, and remove old fast/js/resources pre and post test files.
rniwa: review+
Fix path to post file in a fwe tests, and adjust the expected results to match.
none
Remove un-needed js-test-style.css.
rniwa: review+
Remove more references to the deleted js-test-style.css
rniwa: review+, eflews.bot: commit-queue-
Move fast/js to js (Just the Tools/Scripts + LayoutTests/ChangeLog diff. The LayoutTests file move diff is too large and not as interesting).
none
Move image-preload-helper.js from js/resources to resources.
none
Replace remaining "fast js" names in scripts. none

Description Mark Lam 2013-09-06 15:12:34 PDT
Moving the fast/js to out of the fast directory so that folks doing non-js work can runs fast test without running the js suite.
Comment 1 Filip Pizlo 2013-09-06 15:15:15 PDT
Please make sure to also edit all scripts that rely on fast/js/regress being in fast.
Comment 2 Mark Lam 2013-09-06 16:11:10 PDT
Will leave fast/js/resources where it is so that I don't have to touch every non-js test that uses it.
Comment 3 Filip Pizlo 2013-09-06 16:14:28 PDT
(In reply to comment #2)
> Will leave fast/js/resources where it is so that I don't have to touch every non-js test that uses it.

Search-and-replace?
Comment 4 Mark Lam 2013-09-06 17:07:29 PDT
I changed my mind.  I will search and replace all the paths automatically in the affected test directories.
Comment 5 Ryosuke Niwa 2013-09-06 17:10:11 PDT
Could you move js-test-pre.js & js-test-post.js to LayoutTests/resources first?  (You probably need to svn cp and make the change in several separate commits).  There are many other JS files that are dependent by the rest of layout tests.
Comment 6 Ryosuke Niwa 2013-09-06 17:10:59 PDT
Also, please be sure to update all TestExpectations files when you make the move.  Otherwise, hundreds of tests that have been marked failing, etc... are going to start failing and NRWT will spits out, again, hundreds of lint errors, and all kinds of the hell ensues.
Comment 7 Mark Lam 2013-09-07 20:26:03 PDT
Created attachment 210951 [details]
Change LayoutTests' f*-j* files to use pre and post js files in LayoutTests/resources
Comment 8 Mark Lam 2013-09-07 20:43:42 PDT
(In reply to comment #7)
> Created an attachment (id=210951) [details]
> Change LayoutTests' f*-j* files to use pre and post js files in LayoutTests/resources

rs=Filip Pizlo.  Landed in r155279: <http://trac.webkit.org/r155279>
Comment 9 Mark Lam 2013-09-07 21:16:38 PDT
Created attachment 210959 [details]
Change LayoutTests' m*-p* files to use pre and post js files in LayoutTests/resources.
Comment 10 Mark Lam 2013-09-07 21:28:37 PDT
(In reply to comment #9)
> Created an attachment (id=210959) [details]
> Change LayoutTests' m*-p* files to use pre and post js files in LayoutTests/resources.

rs=Filip Pizlo.  Landed in r155282: <http://trac.webkit.org/r155282>.
Comment 11 Mark Lam 2013-09-07 22:10:36 PDT
Created attachment 210961 [details]
Change LayoutTests' s* files to use pre and post js files in LayoutTests/resources.
Comment 12 Mark Lam 2013-09-07 22:31:11 PDT
(In reply to comment #11)
> Created an attachment (id=210961) [details]
> Change LayoutTests' s* files to use pre and post js files in LayoutTests/resources.

rs=Filip Pizlo.  Landed in r155284: <http://trac.webkit.org/r155284>.
Comment 13 Mark Lam 2013-09-07 22:43:00 PDT
Created attachment 210964 [details]
Change LayoutTests' t* files to use pre and post js files in LayoutTests/resources.
Comment 14 Mark Lam 2013-09-07 22:47:33 PDT
(In reply to comment #13)
> Created an attachment (id=210964) [details]
> Change LayoutTests' t* files to use pre and post js files in LayoutTests/resources.

rs=Filip Pizlo.  Landed in r155285: <http://trac.webkit.org/r155285>.
Comment 15 Mark Lam 2013-09-07 23:02:42 PDT
Created attachment 210965 [details]
Change LayoutTests' u*-w* files to use pre and post js files in LayoutTests/resources.
Comment 16 Mark Lam 2013-09-07 23:11:30 PDT
(In reply to comment #15)
> Created an attachment (id=210965) [details]
> Change LayoutTests' u*-w* files to use pre and post js files in LayoutTests/resources.

rs=Filip Pizlo.  Landed in r155286: <http://trac.webkit.org/r155286>.
Comment 17 Alexey Proskuryakov 2013-09-08 11:36:57 PDT
http/tests/security/shape-inside-image-origin.html is now "failing": <http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK1%20(Tests)/r155306%20(12666)/results.html>

Mark, can you update test results accordingly?
Comment 18 Alexey Proskuryakov 2013-09-08 13:34:27 PDT
> Mark, can you update test results accordingly?

Mark doesn't seem to be around, so I did that in r155312.
Comment 19 Mark Lam 2013-09-09 12:16:28 PDT
Created attachment 211063 [details]
Change some remaining fast/* files to use pre and post js files in LayoutTests/resources.
Comment 20 Mark Lam 2013-09-09 12:19:04 PDT
(In reply to comment #19)
> Created an attachment (id=211063) [details]
> Change some remaining fast/* files to use pre and post js files in LayoutTests/resources.

rs=Filip Pizlo.  Landed in r155369: <http://trac.webkit.org/r155369>.
Comment 21 Mark Lam 2013-09-09 15:14:35 PDT
Created attachment 211101 [details]
Point Tools scripts to LayoutTests/resources, and remove old fast/js/resources pre and post test files.
Comment 22 Mark Lam 2013-09-09 15:23:26 PDT
(In reply to comment #21)
> Created an attachment (id=211101) [details]
> Point Tools scripts to LayoutTests/resources, and remove old fast/js/resources pre and post test files.

Thanks to rniwa for the review.  Landed in r155392: <http://trac.webkit.org/r155392>.
Comment 23 Mark Lam 2013-09-09 16:02:34 PDT
Created attachment 211110 [details]
Fix path to post file in a fwe tests, and adjust the expected results to match.
Comment 24 Mark Lam 2013-09-09 16:04:25 PDT
Comment on attachment 211110 [details]
Fix path to post file in a fwe tests, and adjust the expected results to match.

(In reply to comment #23)
> Created an attachment (id=211110) [details]
> Fix path to post file in a fwe tests, and adjust the expected results to match.

rs=Filip Pizlo.  Landed in r155401: <http://trac.webkit.org/r155401>.
Comment 25 Benjamin Poulain 2013-09-09 16:59:04 PDT
The webkitpy tests started failing after this: http://build.webkit.org/builders/Apple%20MountainLion%20Debug%20WK1%20%28Tests%29/builds/9980
Comment 26 Mark Lam 2013-09-09 17:23:29 PDT
(In reply to comment #25)
> The webkitpy tests started failing after this: http://build.webkit.org/builders/Apple%20MountainLion%20Debug%20WK1%20%28Tests%29/builds/9980

r155392 has been rolled out in r155404: <http://trac.webkit.org/r155404>.
Comment 27 Mark Lam 2013-09-09 18:57:46 PDT
Created attachment 211130 [details]
Remove un-needed js-test-style.css.
Comment 28 Mark Lam 2013-09-09 19:29:18 PDT
(In reply to comment #27)
> Created an attachment (id=211130) [details]
> Remove un-needed js-test-style.css.

Thanks to rniwa for the review.  Landed in r155410: <http://trac.webkit.org/r155410>.
Comment 29 Mark Lam 2013-09-09 19:48:37 PDT
(In reply to comment #26)
> (In reply to comment #25)
> > The webkitpy tests started failing after this: http://build.webkit.org/builders/Apple%20MountainLion%20Debug%20WK1%20%28Tests%29/builds/9980
> 
> r155392 has been rolled out in r155404: <http://trac.webkit.org/r155404>.

r155392 has been re-landed in r155411: <http://trac.webkit.org/r155411>.

The issue was that update_webgl_conformance_tests_unittest.py was referencing js-test-style.css in the wrong path.  However, js-test-style.css was deleted in r155410.  Hence, the fix here is simply to delete the line that references js-test-style.css in update_webgl_conformance_tests_unittest.py.
Comment 30 Ryosuke Niwa 2013-09-09 21:10:02 PDT
(In reply to comment #29)
> (In reply to comment #26)
> > (In reply to comment #25)
> > > The webkitpy tests started failing after this: http://build.webkit.org/builders/Apple%20MountainLion%20Debug%20WK1%20%28Tests%29/builds/9980
> > 
> > r155392 has been rolled out in r155404: <http://trac.webkit.org/r155404>.
> 
> r155392 has been re-landed in r155411: <http://trac.webkit.org/r155411>.
> 
> The issue was that update_webgl_conformance_tests_unittest.py was referencing js-test-style.css in the wrong path.  However, js-test-style.css was deleted in r155410.  Hence, the fix here is simply to delete the line that references js-test-style.css in update_webgl_conformance_tests_unittest.py.

Makes sense. Thanks!
Comment 31 Mark Lam 2013-09-09 22:50:52 PDT
Created attachment 211164 [details]
Remove more references to the deleted js-test-style.css
Comment 32 Mark Lam 2013-09-09 22:59:40 PDT
Comment on attachment 211164 [details]
Remove more references to the deleted js-test-style.css

View in context: https://bugs.webkit.org/attachment.cgi?id=211164&action=review

> LayoutTests/fast/js/line-column-numbers.html:5
> +

This blank line was added to compensate for the line I delete above.  This way I don't have to change all the result line numbers in the expected file.

> LayoutTests/fast/js/stack-trace.html:6
> +

This blank line was added to compensate for the line I delete above.  This way I don't have to change all the result line numbers in the expected file.
Comment 33 Ryosuke Niwa 2013-09-09 23:06:30 PDT
Comment on attachment 211164 [details]
Remove more references to the deleted js-test-style.css

View in context: https://bugs.webkit.org/attachment.cgi?id=211164&action=review

> LayoutTests/platform/mac/accessibility/supports-focus-setting.html:6
>  <script>
>  var successfullyParsed = false;
>  </script>

successfullyParsed is completely useless in all these accessibility tests because of the fact it's defined before the actual test code :(
Comment 34 Mark Lam 2013-09-09 23:42:24 PDT
(In reply to comment #31)
> Created an attachment (id=211164) [details]
> Remove more references to the deleted js-test-style.css

Thanks to rniwa for the review.  Landed in r155423: <http://trac.webkit.org/r155423>.
Comment 35 EFL EWS Bot 2013-09-10 00:30:41 PDT
Comment on attachment 211164 [details]
Remove more references to the deleted js-test-style.css

Attachment 211164 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/1732627
Comment 36 Mark Lam 2013-09-10 00:48:51 PDT
(In reply to comment #35)
> (From update of attachment 211164 [details])
> Attachment 211164 [details] did not pass efl-wk2-ews (efl-wk2):
> Output: http://webkit-queues.appspot.com/results/1732627

This ews failure is bogus.  It complains of a C++ build error while the patch does not change any C++ code.
Comment 37 Mark Lam 2013-09-10 09:47:17 PDT
Created attachment 211207 [details]
Move fast/js to js (Just the Tools/Scripts + LayoutTests/ChangeLog diff.  The LayoutTests file move diff is too large and not as interesting).

In this last patch, I also moved LayoutTests/platform/*/fast/js to LayoutTests/platform/*/js.  Relative paths to LayoutTests/resources needed to be updated in fast/js and platform/fast/js files.  Also updated all TestExpectation files.
Comment 38 Mark Lam 2013-09-10 09:56:15 PDT
(In reply to comment #37)
> Created an attachment (id=211207) [details]
> Move fast/js to js (Just the Tools/Scripts + LayoutTests/ChangeLog diff.  The LayoutTests file move diff is too large and not as interesting).
> 
> In this last patch, I also moved LayoutTests/platform/*/fast/js to LayoutTests/platform/*/js.  Relative paths to LayoutTests/resources needed to be updated in fast/js and platform/fast/js files.  Also updated all TestExpectation files.

rs=Filip Pizlo.  Landed in r155452: <http://trac.webkit.org/r155452>.

Note: though this patch is big, it had to be landed in one shot or things will break.  Now, I'll keep an eye on the bots. If all goes well as expected, I'll close this bug.
Comment 39 Mark Lam 2013-09-10 12:06:32 PDT
Created attachment 211219 [details]
Move image-preload-helper.js from js/resources to resources.

This patch was intended to go with the fast/js to js move, but was missing.  It will resolve the fast/events/mouse-cursor*.html failures that showed up with r155452.
Comment 40 Mark Lam 2013-09-10 12:08:45 PDT
(In reply to comment #39)
> Created an attachment (id=211219) [details]
> Move image-preload-helper.js from js/resources to resources.

rs=Filip Pizlo.  Landed in r155462: <http://trac.webkit.org/r155462>.
Comment 41 Mark Lam 2013-09-10 14:50:41 PDT
Created attachment 211247 [details]
Replace remaining "fast js" names in scripts.
Comment 42 Mark Lam 2013-09-10 14:55:04 PDT
(In reply to comment #41)
> Created an attachment (id=211247) [details]
> Replace remaining "fast js" names in scripts.

rs-Filip Pizlo.  Landed in r155479: <http://trac.webkit.org/r155479>.
Comment 43 Mark Lam 2013-09-10 14:57:46 PDT
(In reply to comment #38)
> rs=Filip Pizlo.  Landed in r155452: <http://trac.webkit.org/r155452>.
> 
> ... I'll keep an eye on the bots. If all goes well as expected, I'll close this bug.

The one issue with mouse-cursor tests have been fixed.  The bots do not show regressions due to patches in this bug.  Closing the bug as fixed.