<commit_before><!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

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

  <script src="../../webcomponentsjs/webcomponents.min.js"></script>

  <script src="../../web-component-tester/browser.js"></script>

  <!-- Step 1: import the element to test -->
  <link rel="import" href="../mqtt-elements.html">

</head>
<body>

<mqtt-subscription></mqtt-subscription>

<script>
  //  Setp 2: get the element
  var mqttSubscription =  document.querySelector('mqtt-subscription');


  suite('mqtt-subscription-spec', function() {
    //  Setp 3: Test the element
    test('Element is not null', function() {
      assert.isNotNull(mqttSubscription);
      assert.notTypeOf(mqttSubscription, 'undefined');
    });

    test('mqtt-subscription.qos is a number', function() {
      assert.isNumber(mqttSubscription.qos);
      assert.strictEqual(mqttSubscription.qos, 0)
    });

    test('mqtt-subscription.topic is a string', function() {
      assert.typeOf(mqttSubscription.topic, 'string');
      assert.strictEqual(mqttSubscription.topic, '')
    });

    test('mqtt-subscription.messages is a array', function() {
      assert.typeOf(mqttSubscription.messages, 'array');
      assert.deepEqual(mqttSubscription.messages, [])
    });

    test('mqtt-subscription.subscribed is a boolean', function() {
      assert.isBoolean(mqttSubscription.subscribed);
      assert.isFalse(mqttSubscription.subscribed)
    });
    

  });
</script>

</body>
</html><commit_msg>changing test ot element type to object<commit_after><!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

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

  <script src="../../webcomponentsjs/webcomponents.min.js"></script>

  <script src="../../web-component-tester/browser.js"></script>

  <!-- Step 1: import the element to test -->
  <link rel="import" href="../mqtt-elements.html">

</head>
<body>

<mqtt-subscription></mqtt-subscription>

<script>
  //  Setp 2: get the element
  var mqttSubscription =  document.querySelector('mqtt-subscription');


  suite('mqtt-subscription-spec', function() {
    //  Setp 3: Test the element
    test('Element is not null', function() {
      assert.isNotNull(mqttSubscription);
      assert.typeOf(mqttSubscription, 'object');
    });

    test('mqtt-subscription.qos is a number', function() {
      assert.isNumber(mqttSubscription.qos);
      assert.strictEqual(mqttSubscription.qos, 0)
    });

    test('mqtt-subscription.topic is a string', function() {
      assert.typeOf(mqttSubscription.topic, 'string');
      assert.strictEqual(mqttSubscription.topic, '')
    });

    test('mqtt-subscription.messages is a array', function() {
      assert.typeOf(mqttSubscription.messages, 'array');
      assert.deepEqual(mqttSubscription.messages, [])
    });

    test('mqtt-subscription.subscribed is a boolean', function() {
      assert.isBoolean(mqttSubscription.subscribed);
      assert.isFalse(mqttSubscription.subscribed)
    });

  });
</script>

</body>
</html>
{'fraction_non_alphanumeric': 0.14309484193011648, 'fraction_numerical': 0.0057047777513667694, 'mean_word_length': 3.8816705336426915, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '1535251', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1266, 'n_words': 313}