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

Mark Lam
Reported 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.
Attachments
Change LayoutTests' f*-j* files to use pre and post js files in LayoutTests/resources (1.30 MB, patch)
2013-09-07 20:26 PDT, Mark Lam
no flags
Change LayoutTests' m*-p* files to use pre and post js files in LayoutTests/resources. (284.75 KB, patch)
2013-09-07 21:16 PDT, Mark Lam
no flags
Change LayoutTests' s* files to use pre and post js files in LayoutTests/resources. (780.07 KB, patch)
2013-09-07 22:10 PDT, Mark Lam
no flags
Change LayoutTests' t* files to use pre and post js files in LayoutTests/resources. (30.51 KB, patch)
2013-09-07 22:43 PDT, Mark Lam
no flags
Change LayoutTests' u*-w* files to use pre and post js files in LayoutTests/resources. (492.29 KB, patch)
2013-09-07 23:02 PDT, Mark Lam
no flags
Change some remaining fast/* files to use pre and post js files in LayoutTests/resources. (4.07 KB, patch)
2013-09-09 12:16 PDT, Mark Lam
no flags
Point Tools scripts to LayoutTests/resources, and remove old fast/js/resources pre and post test files. (42.42 KB, patch)
2013-09-09 15:14 PDT, Mark Lam
rniwa: review+
Fix path to post file in a fwe tests, and adjust the expected results to match. (4.39 KB, patch)
2013-09-09 16:02 PDT, Mark Lam
no flags
Remove un-needed js-test-style.css. (78.67 KB, patch)
2013-09-09 18:57 PDT, Mark Lam
rniwa: review+
Remove more references to the deleted js-test-style.css (48.60 KB, patch)
2013-09-09 22:50 PDT, Mark Lam
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). (262.89 KB, patch)
2013-09-10 09:47 PDT, Mark Lam
no flags
Move image-preload-helper.js from js/resources to resources. (7.66 KB, patch)
2013-09-10 12:06 PDT, Mark Lam
no flags
Replace remaining "fast js" names in scripts. (16.55 KB, patch)
2013-09-10 14:50 PDT, Mark Lam
no flags
Filip Pizlo
Comment 1 2013-09-06 15:15:15 PDT
Please make sure to also edit all scripts that rely on fast/js/regress being in fast.
Mark Lam
Comment 2 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.
Filip Pizlo
Comment 3 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?
Mark Lam
Comment 4 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.
Ryosuke Niwa
Comment 5 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.
Ryosuke Niwa
Comment 6 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.
Mark Lam
Comment 7 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
Mark Lam
Comment 8 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>
Mark Lam
Comment 9 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.
Mark Lam
Comment 10 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>.
Mark Lam
Comment 11 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.
Mark Lam
Comment 12 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>.
Mark Lam
Comment 13 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.
Mark Lam
Comment 14 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>.
Mark Lam
Comment 15 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.
Mark Lam
Comment 16 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>.
Alexey Proskuryakov
Comment 17 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?
Alexey Proskuryakov
Comment 18 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.
Mark Lam
Comment 19 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.
Mark Lam
Comment 20 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>.
Mark Lam
Comment 21 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.
Mark Lam
Comment 22 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>.
Mark Lam
Comment 23 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.
Mark Lam
Comment 24 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>.
Benjamin Poulain
Comment 25 2013-09-09 16:59:04 PDT
Mark Lam
Comment 26 2013-09-09 17:23:29 PDT
Mark Lam
Comment 27 2013-09-09 18:57:46 PDT
Created attachment 211130 [details] Remove un-needed js-test-style.css.
Mark Lam
Comment 28 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>.
Mark Lam
Comment 29 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.
Ryosuke Niwa
Comment 30 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!
Mark Lam
Comment 31 2013-09-09 22:50:52 PDT
Created attachment 211164 [details] Remove more references to the deleted js-test-style.css
Mark Lam
Comment 32 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.
Ryosuke Niwa
Comment 33 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 :(
Mark Lam
Comment 34 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>.
EFL EWS Bot
Comment 35 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
Mark Lam
Comment 36 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.
Mark Lam
Comment 37 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.
Mark Lam
Comment 38 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.
Mark Lam
Comment 39 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.
Mark Lam
Comment 40 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>.
Mark Lam
Comment 41 2013-09-10 14:50:41 PDT
Created attachment 211247 [details] Replace remaining "fast js" names in scripts.
Mark Lam
Comment 42 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>.
Mark Lam
Comment 43 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.
Note You need to log in before you can comment on or make changes to this bug.