Index: third_party/WebKit/LayoutTests/fast/dom/Window/element-constructors-to-string-expected.txt |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/element-constructors-to-string-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Window/element-constructors-to-string-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..458a7a42263578664f42bc699b631513a6da7255 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/Window/element-constructors-to-string-expected.txt |
@@ -0,0 +1,19 @@ |
+Test that HTML element constructors' toString is just Function.prototype.toString, and that changing <HTML ELEMENT>.toString.toString doesn't change the output of <HTML ELEMENT>.toString(). |
+ |
+HTMLElement.toString(): function HTMLElement() { [native code] } |
+ |
+HTMLElement.toString.toString(): function toString() { [native code] } |
+ |
+HTMLElement.toString === Function.prototype.toString: true |
+ |
+After setting HTMLElement.toString.toString to "function() { return "foobar"; }" |
+ |
+HTMLElement.toString(): function HTMLElement() { [native code] } |
+ |
+HTMLElement.toString.toString(): foobar |
+ |
+HTMLElement.toString === Function.prototype.toString: true |
+ |
+HTMLDivElement.toString(): function HTMLDivElement() { [native code] } |
+ |
+HTMLDivElement.toString.toString(): foobar |