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

Side by Side Diff: sky/tests/custom-elements/document-register-basic.sky

Issue 685623002: Move the tests from .html to .sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
1 <html> 1 <html>
2 <link rel="import" href="../resources/chai.html" /> 2 <link rel="import" href="../resources/chai.sky" />
3 <link rel="import" href="../resources/mocha.html" /> 3 <link rel="import" href="../resources/mocha.sky" />
4 <body> 4 <body>
5 <div id="container"></div> 5 <div id="container"></div>
6 <script> 6 <script>
7 describe('document.registerElement()', function() { 7 describe('document.registerElement()', function() {
8 it('should have basic behaviors', function() { 8 it('should have basic behaviors', function() {
9 function createRegisterParameters() 9 function createRegisterParameters()
10 { 10 {
11 return { 11 return {
12 prototype: Object.create(HTMLElement.prototype, { thisIsPrototype: { value: true } }) 12 prototype: Object.create(HTMLElement.prototype, { thisIsPrototype: { value: true } })
13 }; 13 };
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Constructors shouldn't interfere with each other 93 // Constructors shouldn't interfere with each other
94 assert.equal((new fooConstructor).tagName, "x-foo"); 94 assert.equal((new fooConstructor).tagName, "x-foo");
95 assert.equal((new barConstructor).tagName, "x-bar"); 95 assert.equal((new barConstructor).tagName, "x-bar");
96 assert.equal((new bazConstructor).tagName, "x-baz"); 96 assert.equal((new bazConstructor).tagName, "x-baz");
97 }); 97 });
98 }); 98 });
99 </script> 99 </script>
100 </body> 100 </body>
101 </html> 101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698