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

Unified Diff: sky/tests/custom-elements/generated-constructor.sky

Issue 809183002: Improve custom-elements/generated-constructor.sky test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/custom-elements/generated-constructor.sky
diff --git a/sky/tests/custom-elements/generated-constructor.sky b/sky/tests/custom-elements/generated-constructor.sky
index 619ebc74327eb965bffb349e910e052850963836..bbfd28900004d8704846aed0980f2ce724b2b8cb 100644
--- a/sky/tests/custom-elements/generated-constructor.sky
+++ b/sky/tests/custom-elements/generated-constructor.sky
@@ -4,7 +4,7 @@
<script>
describe("Custom element constructor", function() {
it("should inherit from the passed constructor", function() {
- class TestElementClass {
+ class TestElementClass extends HTMLElement {
static test() { return 10; }
}
var TestElement = document.registerElement("test-element-1", {
@@ -12,6 +12,7 @@ describe("Custom element constructor", function() {
});
assert.isFunction(TestElement.test);
assert.equal(TestElement.test(), 10);
+ assert.equal(Object.getPrototypeOf(TestElement), TestElementClass);
});
});
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698