diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2009-04-24 18:32:48 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2009-04-24 18:32:48 +0000 |
commit | a33e9bcff3aac6832df406f779852519ca06cb45 (patch) | |
tree | 1d782a693dc795816581d4775bc1921ee382b523 /third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html | |
parent | 62689b7c9883778095bf6806acf9c42bf6bc5ebe (diff) | |
download | chromium_src-a33e9bcff3aac6832df406f779852519ca06cb45.zip chromium_src-a33e9bcff3aac6832df406f779852519ca06cb45.tar.gz chromium_src-a33e9bcff3aac6832df406f779852519ca06cb45.tar.bz2 |
WebCore:
2009-04-24 Fumitoshi Ukai <ukai@google.com>
Reviewed by Dimitri Glazkov.
https://bugs.webkit.org/show_bug.cgi?id=25257
Use null for unspecified event listener attributes of XMLHttpRequest
and XMLHttpRequestUpload in v8 binding.
cf. http://www.whatwg.org/specs/web-apps/current-work/#event-handler-attributes
An event handler attribute, unless otherwise specified, can either
have the value null or be set to a Function object.
Initially, an event handler attribute must be set to null.
Test: fast/xmlhttprequest/xmlhttprequest-default-attributes.html
* bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
(WebCore::ACCESSOR_GETTER): Changed to use v8::Null().
* bindings/v8/custom/V8XMLHttpRequestUploadCustom.cpp:
(WebCore::ACCESSOR_GETTER): Ditto.
LayoutTests:
2009-04-24 Fumitoshi Ukai <ukai@google.com>
Reviewed by Dimitri Glazkov.
https://bugs.webkit.org/show_bug.cgi?id=25257
Verify XMLHttpRequest has correct attribute value by default.
* fast/xmlhttprequest/resources/xmlhttprequest-default-attributes.js: Added.
* fast/xmlhttprequest/xmlhttprequest-default-attributes-expected.txt: Added.
* fast/xmlhttprequest/xmlhttprequest-default-attributes.html: Added.
git-svn-id: svn://svn.chromium.org/blink/trunk@42828 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html new file mode 100644 index 0000000..26d5dd5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-default-attributes.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> +<html> +<head> +<script src="../js/resources/js-test-pre.js"></script> +</head> +<body> +<p id="description"></p> +<div id="console"></div> +<script src="resources/xmlhttprequest-default-attributes.js"></script> +<script src="../js/resources/js-test-post.js"></script> +</body> +</html> |