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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Window/element-constructors-to-string-expected.txt

Issue 1497503002: Removes the custom toString callback for the various DOM constructors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added layout test Created 5 years 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: 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

Powered by Google App Engine
This is Rietveld 408576698