Re-enable two transform_text unit tests.

Note that I had to change some expectations to make them pass.
Cleanup the transform_text tests.
Reformat the transform_text tests.
auto merge of #4487 : Ms2ger/servo/gfx-test, r=jdm

Note that I had to change some expectations to make them pass.