Created attachment 66347 [details] prototype Most of the work needed to convert a test to dumpAsText or dumpAsMarkup tests are very mechanical. We should write a script that automates this process so that we only need to verify the results.
I attached a prototype for this script. Usage will be: rebaseline-for-dumpas-conv <path to test> The script first attempts to convert the test autonomously to either runDumpAsTextEditingTest or dump-as-markup test, and launch an editor for the verification. When this fails, it prints out a message to ask user to manually convert the test, and launches an editor. After that, the script will prompt the user whether or not he/she wants to rebaseline now. If the user choses no, the script halts immediately. If the user chooses to rebaseline, it'll automatically svn-delete all platform-specific results and run webkit tests to generate new result, then svn-add the new result. If the user decides that new test result is wrong or test wasn't converted correctly, he/she can revert all operations done by this script by simply running: rebaseline-for-dumpas-conv <path to test> --revert
Nice! It would be fine if this support git.
If you use scm.py, you'll get SVN+GIT functionality for free.
Created attachment 93829 [details] prototype 2