1 CONSOLE WARNING: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
2 Test for bug 34653: XMLHttpRequest should force to send content-type as charset equals UTF-8.
4 Test1 (setRequestHeader was not called): FAILURE: 'text/plain;charset=UTF-8 '
5 Test2 (setRequestHeader was called without a charset): SUCCESS
6 Test3 (setRequestHeader was called with a non-UTF8 charset): SUCCESS
7 Test4 (setRequestHeader was called with multiple charsets and other attributes): SUCCESS