f734606d0e
Convert 114 tests to use native_testing.dart library. Includes reviewed code from https://codereview.chromium.org/2332953002/ Committed: https://github.com/dart-lang/sdk/commit/ddfc70f1640e5918216d1bd2b125d8d84d24c469 Review URL: https://codereview.chromium.org/2379173002 . Reverted: https://github.com/dart-lang/sdk/commit/74deaad759bfbacbdf55bd47e4f175a4c15ac571
21 lines
387 B
JavaScript
21 lines
387 B
JavaScript
(function() {
|
|
|
|
// A constructor function with the same name as a HTML element.
|
|
function HTMLDivElement(a) {
|
|
this.a = a;
|
|
}
|
|
|
|
HTMLDivElement.prototype.bar = function() {
|
|
return this.a;
|
|
}
|
|
|
|
HTMLDivElement.prototype.toString = function() {
|
|
return "HTMLDivElement(" + this.a + ")";
|
|
}
|
|
|
|
self.makeDiv = function(text) {
|
|
return new HTMLDivElement(text);
|
|
};
|
|
|
|
})();
|