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

Side by Side Diff: tests/html/js_interop_constructor_name_test_js.js

Issue 2383273002: Revert "Add native_testing library to mock @Native classes" (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « tests/html/js_interop_constructor_name_test.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function() {
2
3 // A constructor function with the same name as a HTML element.
4 function HTMLDivElement(a) {
5 this.a = a;
6 }
7
8 HTMLDivElement.prototype.bar = function() {
9 return this.a;
10 }
11
12 HTMLDivElement.prototype.toString = function() {
13 return "HTMLDivElement(" + this.a + ")";
14 }
15
16 self.makeDiv = function(text) {
17 return new HTMLDivElement(text);
18 };
19
20 })();
OLDNEW
« no previous file with comments | « tests/html/js_interop_constructor_name_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698