| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <import src="../resources/chai.sky" /> | 2 <import src="../resources/chai.sky" /> |
| 3 <import src="../resources/mocha.sky" /> | 3 <import src="../resources/mocha.sky" /> |
| 4 <script> | 4 <script> |
| 5 describe('Document', function() { | 5 describe('Application', function() { |
| 6 it('should have a constructor', function() { | 6 it('should have a constructor', function() { |
| 7 var doc = new Document(); | 7 var doc = new Document(); |
| 8 assert.isNotNull(doc); | 8 var app = new Application(doc, "http://www.example.com/app"); |
| 9 assert.doesNotThrow(function() { | 9 assert.equal(app.document, doc); |
| 10 doc.registerElement('x-foo'); | 10 assert.equal(app.url, "http://www.example.com/app"); |
| 11 }, 'new document should have a registration context'); | |
| 12 }); | 11 }); |
| 13 }); | 12 }); |
| 14 </script> | 13 </script> |
| 15 </html> | 14 </html> |
| OLD | NEW |