Patch to allow running specs containing UTF-8 #47
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I added this patch to allow running specs whose source files contain UTF-8-encoded characters. We found these specs would pass when run via a normal browser and the regular Jasmine spec server, but would fail under jasmine-headless-webkit because the headless browser was loading the source files as latin1.
The fix is to set the character encoding of the autogenerated HTML test harness to UTF-8, which causes the headless browser to assume all the loaded source files are also UTF-8. (This is the same approach as taken by the spec server.)
Cheers,
Sam Stokes
Rapportive
Looks great, thanks!