Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: webkit/data/layout_tests/chrome/fast/js/resources/xhr-event-handler-default.js

Issue 67225: Use null for default value of event handler attributes in XMLHttpRequest.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/data/layout_tests/chrome/fast/js/resources/xhr-event-handler-default.js
===================================================================
--- webkit/data/layout_tests/chrome/fast/js/resources/xhr-event-handler-default.js (revision 0)
+++ webkit/data/layout_tests/chrome/fast/js/resources/xhr-event-handler-default.js (revision 0)
@@ -0,0 +1,20 @@
+description("This test verifies that XMLHttpRequest object has null event handler attributes by default.");
+
+var xhr = new XMLHttpRequest();
+
+shouldBeNull("xhr.onabort");
+shouldBeNull("xhr.onerror");
+shouldBeNull("xhr.onload");
+shouldBeNull("xhr.onloadstart");
+shouldBeNull("xhr.onprogress");
+shouldBeNull("xhr.onreadystatechange");
+
+var xhr_upload = xhr.upload;
+
+shouldBeNull("xhr_upload.onabort");
+shouldBeNull("xhr_upload.onerror");
+shouldBeNull("xhr_upload.onload");
+shouldBeNull("xhr_upload.onloadstart");
+shouldBeNull("xhr_upload.onprogress");
+
+var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698