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


  <script src="../../webcomponentsjs/webcomponents.min.js"></script>
  <script src="../../web-component-tester/browser.js"></script>
  <script src="../../test-fixture/test-fixture-mocha.js"></script>


  <!-- Step 1: import the element to test -->

  <link rel="import" href="../../polymer/polymer.html">
  <link rel="import" href="../../promise-polyfill/promise-polyfill-lite.html">
  <link rel="import" href="../../test-fixture/test-fixture.html">


  <link rel="import" href="../mqtt-elements.html">

</head>
<body>

<test-fixture id="Connection">
  <template>
    <mqtt-connection></mqtt-connection>
  </template>
</test-fixture>

<script>
  var mqttElement;
  suite('<mqtt-connection>', function () {


    suite('mqtt-connection-change-properties', function () {
      setup(function () {
        mqttElement = fixture('Connection');
      });

      //  Setp 3: Test the element
      test('It should be possible to change <mqtt-connection>.disableAuto', function () {
        assert.isFalse(mqttElement.auto);
        mqttElement.auto = true;
        assert.isTrue(mqttElement.auto);
      });

      test('It should be possible to change <mqtt-connection>.clean', function () {
        assert.isTrue(mqttElement.clean);
        mqttElement.clean = false;
        assert.isFalse(mqttElement.clean);
      });

      test('It should be possible to change <mqtt-connection>.url', function () {
        assert.strictEqual(mqttElement.url, "");
        mqttElement.url = "ws://localhost";
        assert.strictEqual(mqttElement.url, "ws://localhost");
      });

    });
  });
</script>

</body>
</html><commit_msg>changing old to new api<commit_after><!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>mqtt-connection-basic</title>


  <script src="../../webcomponentsjs/webcomponents.min.js"></script>
  <script src="../../web-component-tester/browser.js"></script>
  <script src="../../test-fixture/test-fixture-mocha.js"></script>


  <!-- Step 1: import the element to test -->

  <link rel="import" href="../../polymer/polymer.html">
  <link rel="import" href="../../promise-polyfill/promise-polyfill-lite.html">
  <link rel="import" href="../../test-fixture/test-fixture.html">


  <link rel="import" href="../mqtt-elements.html">

</head>
<body>

<test-fixture id="Connection">
  <template>
    <mqtt-connection></mqtt-connection>
  </template>
</test-fixture>

<script>
  var mqttElement;
  suite('<mqtt-connection>', function () {


    suite('mqtt-connection-change-properties', function () {
      setup(function () {
        mqttElement = fixture('Connection');
      });

      //  Setp 3: Test the element
      test('It should be possible to change <mqtt-connection>.auto', function () {
        assert.isFalse(mqttElement.auto);
        mqttElement.auto = true;
        assert.isTrue(mqttElement.auto);
      });

      test('It should be possible to change <mqtt-connection>.clean', function () {
        assert.isTrue(mqttElement.clean);
        mqttElement.clean = false;
        assert.isFalse(mqttElement.clean);
      });

      test('It should be possible to change <mqtt-connection>.url', function () {
        assert.strictEqual(mqttElement.url, "");
        mqttElement.url = "ws://localhost";
        assert.strictEqual(mqttElement.url, "ws://localhost");
      });

    });
  });
</script>

</body>
</html>
{'fraction_non_alphanumeric': 0.18817056396148557, 'fraction_numerical': 0.003301237964236589, 'mean_word_length': 3.1084745762711865, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '814380', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1126, 'n_words': 201}