Bug 849230 follow-up: Fix expectException to actually check the exception code, and don't use imaginary DOMException names!

--HG--
extra : rebase_source : df53ddca50487bfc10676fd43e98abb949a2c298