module('constructor');

test('create from document.createElement', function() {
  var time = document.createElement('local-time');
  equal('LOCAL-TIME', time.nodeName);
});

test('create from constructor', function() {
  var time = new window.LocalTimeElement();
  equal('LOCAL-TIME', time.nodeName);
});

test('ignores elements without a datetime attr', function() {
  var time = document.createElement('local-time');
  equal(time.textContent, '');
});

test('leaves contents alone if only datetime is set', function() {
  var time = document.createElement('local-time');
  time.setAttribute('datetime', '1970-01-01T00:00:00.000Z');
  equal(time.textContent, '');
});

module('constructor');

test('create from document.createElement', function() {
  var time = document.createElement('time', 'local-time');
  equal('TIME', time.nodeName);
  equal('local-time', time.getAttribute('is'))
});

test('create from constructor', function() {
  var time = new window.LocalTimeElement();
  equal('TIME', time.nodeName);
  equal('local-time', time.getAttribute('is'));
});

test('ignores elements without a datetime attr', function() {
  var time = document.createElement('local-time');
  equal(time.textContent, '');
});

test('leaves contents alone if only datetime is set', function() {
  var time = document.createElement('local-time');
  time.setAttribute('datetime', '1970-01-01T00:00:00.000Z');
  equal(time.textContent, '');
});

Fix createElement call for extended time element.
Fix createElement call for extended time element.
