blob: b2a4f090d092d67b723440b037713ba8bb7470bb [file] [log] [blame]
description("This test verifies that XMLHttpRequest objects has correct default value for its attributes.");
var xhr = new XMLHttpRequest();
shouldBeNull("xhr.onabort");
shouldBeNull("xhr.onerror");
shouldBeNull("xhr.onload");
shouldBeNull("xhr.onloadstart");
shouldBeNull("xhr.onprogress");
shouldBeNull("xhr.onreadystatechange");
shouldBe("xhr.readyState", "0");
shouldBeNull("xhr.upload.onabort");
shouldBeNull("xhr.upload.onerror");
shouldBeNull("xhr.upload.onload");
shouldBeNull("xhr.upload.onloadstart");
shouldBeNull("xhr.upload.onprogress");