define([
  'intern!bdd',
  'intern/chai!expect',
  'platform/ultralight-platform.min'
], function(bdd, expect, platform) {
  var describe = bdd.describe.bind(bdd)
  var it = bdd.it.bind(bdd)

  describe('ultralight-platform', function() {

    it('shoud add document.registerElement', function() {
      expect(document).to.have.property('registerElement')
    })

    it('should allow a simple custom element to be registered', function(cb) {
      var XFoo = document.registerElement('x-foo')
      var el = new XFoo()
      document.body.appendChild(el);
      var nl  = document.querySelectorAll('x-foo')

      expect(el).to.be.an.instanceof(Node)
      expect(el).to.be.an.instanceof(Element)
      expect(el).to.be.an.instanceof(HTMLElement)
      expect(nl.length).to.equal(1)
    })

  })
});

@@ -448,19 +448,19 @@
    var X
-Foo
+One
  = docum
@@ -482,19 +482,19 @@
 ment('x-
-foo
+one
 ')%0A     
@@ -512,11 +512,11 @@
 ew X
-Foo
+One
 ()%0A 
@@ -596,18 +596,665 @@
 rAll('x-
-f
 o
+ne')%0A%0A      expect(el).to.be.an.instanceof(Node)%0A      expect(el).to.be.an.instanceof(Element)%0A      expect(el).to.be.an.instanceof(HTMLElement)%0A      expect(nl.length).to.equal(1)%0A      document.body.removeChild(el)%0A      nl = document.querySelectorAll('x-one')%0A      expect(nl.length).to.equal(0)%0A    %7D)%0A%0A    it('should allow a simple custom element which explicitly sets it%5C's prototype to HTMLElement', function(cb) %7B%0A      var XTwo = document.registerElement('x-two', %7B%0A        prototype: Object.create(HTMLElement.prototype)%0A      %7D)%0A      var el = new XTwo()%0A      document.body.appendChild(el)%0A      var nl = document.querySelectorAll('x-tw
 o')%0A%0A   
@@ -1433,16 +1433,21 @@
     %7D)%0A%0A
+    %0A
   %7D)%0A%7D);

add new tests