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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Test that HTML element constructors' toString is just Function.prototype.toStrin g, and that changing <HTML ELEMENT>.toString.toString doesn't change the output of <HTML ELEMENT>.toString().
2
3 HTMLElement.toString(): function HTMLElement() { [native code] }
4
5 HTMLElement.toString.toString(): function toString() { [native code] }
6
7 HTMLElement.toString === Function.prototype.toString: true
8
9 After setting HTMLElement.toString.toString to "function() { return "foobar"; }"
10
11 HTMLElement.toString(): function HTMLElement() { [native code] }
12
13 HTMLElement.toString.toString(): foobar
14
15 HTMLElement.toString === Function.prototype.toString: true
16
17 HTMLDivElement.toString(): function HTMLDivElement() { [native code] }
18
19 HTMLDivElement.toString.toString(): foobar
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698