<!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>seed-element</title>

  <script src="../../platform/platform.js"></script>
  <link rel="import" href="tools/tools.html">
  <script src="tools/htmltest.js"></script>
  
  <!-- Step 1: import the element to test -->
  <link rel="import" href="../seed-element.html">

</head>
<body>

  <seed-element></seed-element>

  <script>

    document.addEventListener('polymer-ready', function() {
      // Test a property
      var myEl = document.querySelector('seed-element');
      assert.equal(myEl.author, 'Dimitri Glazkov');

      // Test a method
      var hello = myEl.sayHello();
      assert.equal(hello, 'My element says, Hello World!');
      var greetings = myEl.sayHello('greetings Earthlings');
      assert.equal(greetings, 'My element says, greetings Earthlings');

      // Test an event
      myEl.addEventListener('seed-element-lasers-success', function(event) {
        assert.equal(event.detail.sound, 'Pew pew pew!');
        // IMPORTANT:
        // Make sure to call done() at the end of every test suite!
        done(); 
      });
      myEl.fireLasers();
    });

  </script>

</body>
</html>

<!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>seed-element</title>

  <script src="../../platform/platform.js"></script>
  <link rel="import" href="../../polymer-test-tools/tools.html">
  <script src="../../polymer-test-tools/htmltest.js"></script>
  
  <!-- Step 1: import the element to test -->
  <link rel="import" href="../seed-element.html">

</head>
<body>

  <seed-element></seed-element>

  <script>

    document.addEventListener('polymer-ready', function() {
      // Test a property
      var myEl = document.querySelector('seed-element');
      assert.equal(myEl.author, 'Dimitri Glazkov');

      // Test a method
      var hello = myEl.sayHello();
      assert.equal(hello, 'seed-element says, Hello World!');
      var greetings = myEl.sayHello('greetings Earthlings');
      assert.equal(greetings, 'seed-element says, greetings Earthlings');

      // Test an event
      myEl.addEventListener('seed-element-lasers-success', function(event) {
        assert.equal(event.detail.sound, 'Pew pew pew!');
        // IMPORTANT:
        // Make sure to call done() at the end of every test suite!
        done(); 
      });
      myEl.fireLasers();
    });

  </script>

</body>
</html>

Fix breaking tests, move to polymer-test-tools.
Fix breaking tests, move to polymer-test-tools.
