Chromium Code Reviews| Index: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html |
| diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5c25a29a7e4de77b600753d2a29a1d3bd1a3a5d8 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-inheritance.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<link rel="help" href="http://www.w3.org/TR/2012/WD-XMLHttpRequest-20121206/#xmlhttprequesteventtarget"> |
| +<script src="../resources/js-test-pre.js"></script> |
| +</head> |
| +<body> |
| +<script> |
| +description("Checks the prototype chain of XMLHttpRequest / XMLHttpRequestUpload."); |
| + |
| +// XMLHttpRequest. |
| +shouldBeEqualToString("XMLHttpRequest.__proto__.name", "XMLHttpRequestEventTarget"); |
| +shouldBeEqualToString("XMLHttpRequest.prototype.__proto__.constructor.name", "XMLHttpRequestEventTarget"); |
| +shouldBe("XMLHttpRequest.prototype.__proto__.__proto__", "EventTarget.prototype"); |
| + |
| +// XMLHttpRequestUpload. |
| +shouldBeEqualToString("XMLHttpRequestUpload.__proto__.name", "XMLHttpRequestEventTarget"); |
| +shouldBeEqualToString("XMLHttpRequestUpload.prototype.__proto__.constructor.name", "XMLHttpRequestEventTarget"); |
| +shouldBe("XMLHttpRequestUpload.prototype.__proto__.__proto__", "EventTarget.prototype"); |
|
arv (Not doing code reviews)
2013/08/15 15:02:50
Also:
function className(obj) {
return Object.p
do-not-use
2013/08/15 15:33:45
I added the check. toString() actually returns Obj
|
| +</script> |
| +</body> |
| +<script src="../resources/js-test-post.js"></script> |
| +</html> |