Skip to content

Commit

Permalink
Fix missing semi-colons in test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Aug 17, 2017
1 parent 75c6fff commit 72a59f7
Show file tree
Hide file tree
Showing 39 changed files with 128 additions and 128 deletions.
2 changes: 1 addition & 1 deletion test/unit/configure.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
fooChanged: function(foo) {
this.$.lazy.hadAttrProp = foo;
}
})
});
});
</script>
</dom-module>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/custom-style-async.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
HTMLImports.whenReady(function() {
Polymer({
is: 'x-host'
})
});
});
</script>

Expand Down
4 changes: 2 additions & 2 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
Polymer({
is: 'x-blue-bold-text'
});
})
});
</script>

<script>
Expand Down Expand Up @@ -441,7 +441,7 @@
var d = document.createElement('div');
d.classList.add('ziz');
document.body.appendChild(d);
document.body.appendChild(s1)
document.body.appendChild(s1);
Polymer.updateStyles();
assertComputed(d, '14px');
document.body.removeChild(d);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/dom-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,11 @@
var el = document.createElement('x-guard-separate-props');
el.restamp = restamp;
document.body.appendChild(el);
el.setProperties({a: 'ok', b: true})
el.setProperties({a: 'ok', b: true});
Polymer.flush();
assert.equal(el.guarded.callCount, 1);
assert.equal(el.shadowRoot.textContent.trim(), 'ok');
el.setProperties({a: 'notok', b: false})
el.setProperties({a: 'notok', b: false});
Polymer.flush();
assert.equal(el.guarded.callCount, 1);
assert.equal(el.shadowRoot.textContent.trim(), '');
Expand Down
4 changes: 2 additions & 2 deletions test/unit/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ <h4>x-repeat-chunked</h4>

suite('reacting to changes, view sort with filter', function() {

var unconfigured
var unconfigured;

setup(function() {
unconfigured = fixture('unconfigured');
Expand Down Expand Up @@ -4131,7 +4131,7 @@ <h4>x-repeat-chunked</h4>
Polymer.flush();
assert.equal(domChangeFired, 2);
});
})
});

})();
</script>
Expand Down
24 changes: 12 additions & 12 deletions test/unit/flattened-nodes-observer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script>
HTMLImports.whenReady(function() {
class TestSelfObserve extends Polymer.Element {
static get is() { return 'test-self-observe'}
static get is() { return 'test-self-observe';}

connectedCallback() {
super.connectedCallback();
Expand All @@ -50,7 +50,7 @@
<script>
HTMLImports.whenReady(function() {
class TestStatic extends Polymer.Element {
static get is() { return 'test-static' }
static get is() { return 'test-static'; }
}
customElements.define(TestStatic.is, TestStatic);
});
Expand All @@ -64,7 +64,7 @@
<script>
HTMLImports.whenReady(function() {
class TestSlot extends Polymer.Element {
static get is() { return 'test-slot' }
static get is() { return 'test-slot'; }
}
customElements.define(TestSlot.is, TestSlot);
});
Expand All @@ -78,7 +78,7 @@
<script>
HTMLImports.whenReady(function() {
class TestSlot1 extends Polymer.Element {
static get is() { return 'test-slot1' }
static get is() { return 'test-slot1'; }
}
customElements.define(TestSlot1.is, TestSlot1);
});
Expand All @@ -92,7 +92,7 @@
<script>
HTMLImports.whenReady(function() {
class TestSlot2 extends Polymer.Element {
static get is() { return 'test-slot2' }
static get is() { return 'test-slot2'; }
}
customElements.define(TestSlot2.is, TestSlot2);
});
Expand All @@ -106,7 +106,7 @@
<script>
HTMLImports.whenReady(function() {
class TestSlot3 extends Polymer.Element {
static get is() { return 'test-slot3' }
static get is() { return 'test-slot3'; }
}
customElements.define(TestSlot3.is, TestSlot3);
});
Expand All @@ -121,7 +121,7 @@

HTMLImports.whenReady(function() {
class TestSlotRaw extends Polymer.Element {
static get is() { return 'test-slot-raw' }
static get is() { return 'test-slot-raw'; }
}
customElements.define(TestSlotRaw.is, TestSlotRaw);
});
Expand All @@ -135,7 +135,7 @@
<script>
HTMLImports.whenReady(function() {
class El extends Polymer.Element {
static get is() { return 'test-slot-attr' }
static get is() { return 'test-slot-attr'; }
}
customElements.define(El.is, El);
});
Expand All @@ -149,7 +149,7 @@
<script>
HTMLImports.whenReady(function() {
class El extends Polymer.Element {
static get is() { return 'test-slot-attr1' }
static get is() { return 'test-slot-attr1'; }
}
customElements.define(El.is, El);
});
Expand All @@ -163,7 +163,7 @@
<script>
HTMLImports.whenReady(function() {
class El extends Polymer.Element {
static get is() { return 'test-slot-attr2' }
static get is() { return 'test-slot-attr2'; }
}
customElements.define(El.is, El);
});
Expand All @@ -177,7 +177,7 @@
<script>
HTMLImports.whenReady(function() {
class El extends Polymer.Element {
static get is() { return 'test-slot-attr3' }
static get is() { return 'test-slot-attr3'; }
}
customElements.define(El.is, El);
});
Expand All @@ -191,7 +191,7 @@
<script>
HTMLImports.whenReady(function() {
class El extends Polymer.Element {
static get is() { return 'test-slot-attr-inside' }
static get is() { return 'test-slot-attr-inside'; }
}
customElements.define(El.is, El);
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gestures-elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,6 @@
Polymer({
is: 'x-imperative',
behaviors: [EventCaptureBehavior]
})
});
</script>
</dom-module>
14 changes: 7 additions & 7 deletions test/unit/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
identifier: 1,
// target is set to the element with `addEventListener`, which is app
target: app
}]
}];
let touchstart = new CustomEvent('touchstart', {bubbles: true, composed: true});
touchstart.touches = touchstart.changedTouches = touches;
let touchend = new CustomEvent('touchend', {composed: true, bubbles: true});
Expand Down Expand Up @@ -109,7 +109,7 @@
Polymer.RenderStatus.afterNextRender(null, function() {
inner = outer.$.inner;
done();
})
});
});

suite('setup', function() {
Expand Down Expand Up @@ -497,7 +497,7 @@
suiteSetup(function() {
el = document.createElement('x-imperative');
document.body.appendChild(el);
fn = function(e) { el.handle(e) };
fn = function(e) { el.handle(e); };
});
suiteTeardown(function() {
document.body.removeChild(el);
Expand All @@ -514,7 +514,7 @@
el.dispatchEvent(ev);
assert.equal(el.stream.length, 2);
assert.equal(el.stream[1].type, 'up');
})
});

test('remove listeners with removeListener', function() {
Polymer.Gestures.remove(el, 'down', fn);
Expand All @@ -524,7 +524,7 @@
ev = new CustomEvent('mouseup', {bubbles: true, composed: true});
el.dispatchEvent(ev);
assert.equal(el.stream.length, 2);
})
});
});

suite('setScrollDirection', function() {
Expand All @@ -539,7 +539,7 @@
assert.equal(el[key], 'pan-x');
el.setScrollDirection('y');
assert.equal(el[key], 'pan-y');
})
});
});

suite('Regression Testing', function() {
Expand All @@ -550,7 +550,7 @@
document.dispatchEvent(new MouseEvent('click', { detail: 1, clientX: 100, bubbles: true, composed: true }));
Polymer.Gestures.remove(document, 'tap', null);
});
})
});
</script>

</body>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/importHref.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Polymer.importHref('../../polymer.html', function() {
assert.ok(Polymer.Element);
done();
})
});
});

test('element loaded with Polymer.Base.importHref upgrades properly', function(done) {
Expand Down
14 changes: 7 additions & 7 deletions test/unit/inheritance.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<script>
HTMLImports.whenReady(function() {
class BaseEl extends Polymer.Element {
static get is() { return 'base-el' }
static get is() { return 'base-el'; }
static get properties() {
return { foo: { type: String, value: 5 } }
return { foo: { type: String, value: 5 } };
}
constructor() {
super();
Expand All @@ -59,9 +59,9 @@
<script>
HTMLImports.whenReady(function() {
class ChildEl extends window.BaseEl {
static get is() { return 'child-el' }
static get is() { return 'child-el'; }
static get properties() {
return { bar: { type: String, value: 3 } }
return { bar: { type: String, value: 3 } };
}
}
customElements.define(ChildEl.is, ChildEl);
Expand All @@ -74,9 +74,9 @@
<script>
HTMLImports.whenReady(function() {
class GrandChildEl extends window.ChildEl {
static get is() { return 'grand-child-el' }
static get is() { return 'grand-child-el'; }
static get properties() {
return { bar: { type: String, value: 3 } }
return { bar: { type: String, value: 3 } };
}
}
customElements.define(GrandChildEl.is, GrandChildEl);
Expand All @@ -91,7 +91,7 @@
HTMLImports.whenReady(function() {
class ChildElWithTemplate extends window.GrandChildEl {
static get properties() {
return { bar: { type: String, value: 3 } }
return { bar: { type: String, value: 3 } };
}
static get template() {
var template = window.GrandChildEl.template.cloneNode(true);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/logging.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@
<script>
HTMLImports.whenReady(() => {
class XMixin extends Polymer.LegacyElementMixin(HTMLElement) {
static get is() { return 'x-mixin' }
static get is() { return 'x-mixin'; }
static get properties() {
return {
stream: {
value: () => [],
type: Array
}
}
};
}
_logger(level, args) {
this.stream.push({level, args});
Expand Down
6 changes: 3 additions & 3 deletions test/unit/mixin-behaviors.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
overridableProperty: {
value: true
}
}
};
}

constructor() {
Expand Down Expand Up @@ -313,7 +313,7 @@
window.registerBehavior3
], Polymer.Element) {

static get is() { return 'behavior-registered'}
static get is() { return 'behavior-registered';}

_initializeProperties() {
super._initializeProperties();
Expand All @@ -326,7 +326,7 @@
customElements.define(BehaviorRegistered.is, BehaviorRegistered);

class BehaviorRegisteredExt extends BehaviorRegistered {
static get is() { return 'behavior-registered-ext'}
static get is() { return 'behavior-registered-ext';}
}

BehaviorRegisteredExt.prototype.registeredCount = 0;
Expand Down
10 changes: 5 additions & 5 deletions test/unit/mixin-utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
});
test('Multiple deduplicating mixins apply uniquely', () => {
let mixinFn1 = Polymer.dedupingMixin((base) => class one extends base {
one(){ return true }
one(){ return true; }
});
let mixinFn2 = Polymer.dedupingMixin((base) => class two extends base {
two(){ return true }
two(){ return true; }
});
class base {}
let app1 = mixinFn1(base);
Expand All @@ -92,13 +92,13 @@
});
test('Classes with mixins do not share mixin sets', () => {
let mixinFn1 = Polymer.dedupingMixin((base) => class one extends base {
one(){ return true }
one(){ return true; }
});
let mixinFn2 = Polymer.dedupingMixin((base) => class two extends base {
two(){ return true }
two(){ return true; }
});
let mixinFn3 = Polymer.dedupingMixin((base) => class three extends base {
three(){ return true }
three(){ return true; }
});
class base {}
let app1 = mixinFn1(base);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/path-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
el.setProperties({
a: a,
nested: nested
})
});
// Verify
assert.equal(el.multiplePathsChanged.callCount, 1);
assert.equal(el.multiplePathsChanged.firstCall.args[0], 1);
Expand Down Expand Up @@ -1046,7 +1046,7 @@
var verifyError = function(e) {
assert.equal(e.message, "Malformed observer expression 'foo(missingParenthesis'");
thrown = true;
}
};
try {
Polymer({
is: 'x-broken',
Expand Down
Loading

0 comments on commit 72a59f7

Please sign in to comment.