Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
remove console.log’s from tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 27, 2014
1 parent be54372 commit bf5cc69
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions test/html/bind-object-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
Polymer('x-foo', {
//alwaysPrepare: true,
createdCallback: function() {
console.log(this.localName + ': createdCallback!');
//console.log(this.localName + ': createdCallback!');
this.super();
},
enteredView: function() {
console.log(this.localName + ': enteredView!');
//console.log(this.localName + ': enteredView!');
},
ready: function() {
console.log(this.localName + ': created!');
//console.log(this.localName + ': created!');
}
})
</script>
Expand Down
4 changes: 2 additions & 2 deletions test/html/event-handlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
var self = this;
for (var i=0, o; i <10; i++) {
o = {index: i, itemTapAction: function(e) {
console.log('model action: [%s].%s', e.currentTarget.localName, e.type);
//console.log('model action: [%s].%s', e.currentTarget.localName, e.type);
self.itemTapAction(e);
}};
this.list1.push(o);
Expand All @@ -78,7 +78,7 @@
logEvent: function(e, message) {
this.tests++;
this.lastEvent = e.type;
console.log('[%s].%s: %s', e.currentTarget.localName, e.type, message || '');
//console.log('[%s].%s: %s', e.currentTarget.localName, e.type, message || '');
},
itemTapAction: function(e) {
var model = e.target.templateInstance.model;
Expand Down
18 changes: 9 additions & 9 deletions test/html/event-path-declarative.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
}, true);
},
contentTestEventHandler: function(e, detail, sender) {
console.log('%s on %s in %s, (4)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (4)', e.type, sender.id, this.localName);
testEvent(sender);
},
divTestEventHandler: function(e, detail, sender) {
console.log('%s on %s in %s, (5)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (5)', e.type, sender.id, this.localName);
testEvent(sender);
},
testEventHandler: function(e, detail, sender) {
console.log('%s on %s host event (6)', e.type, this.localName);
//console.log('%s on %s host event (6)', e.type, this.localName);
testEvent(sender);
}
});
Expand All @@ -61,15 +61,15 @@
<script>
Polymer('x-foo', {
contentTestEventHandler: function(e, detail, sender) {
console.log('%s on %s in %s, (3)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (3)', e.type, sender.id, this.localName);
testEvent(sender);
},
divTestEventHandler: function(e, detail, sender) {
console.log('%s on %s in %s, (7)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (7)', e.type, sender.id, this.localName);
testEvent(sender);
},
testEventHandler: function(e, detail, sender) {
console.log('%s on %s host event (8)', e.type, this.localName);
//console.log('%s on %s host event (8)', e.type, this.localName);
testEvent(sender);
}
});
Expand Down Expand Up @@ -101,14 +101,14 @@
contentTestEventHandler: function(e, detail, sender) {
eventPath.shift();
testEvent(sender);
console.log('%s on %s in %s, (1)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (1)', e.type, sender.id, this.localName);
},
divTestEventHandler: function(e, detail, sender) {
console.log('%s on %s in %s, (2)', e.type, sender.id, this.localName);
//console.log('%s on %s in %s, (2)', e.type, sender.id, this.localName);
testEvent(sender);
},
testEventHandler: function(e, detail, sender) {
console.log('%s on %s host event (9)', e.type, this.localName);
//console.log('%s on %s host event (9)', e.type, this.localName);
testEvent(sender);
}
});
Expand Down
1 change: 0 additions & 1 deletion test/html/prepare.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
chai.assert.isTrue(this.$.basic._elementPrepared,
'sub-elements prepared by ready time');
this.onMutation(this.shadowRoot, function() {
console.log('mutation!')
var inits = this.shadowRoot.querySelectorAll('x-bind-init');
for (var i=0, ii; (i<inits.length) && (ii=inits[i]); i++) {
chai.assert.isTrue(ii.sawStuffChanged, 'binding while inert triggered side effect');
Expand Down
6 changes: 3 additions & 3 deletions test/html/property-observe.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
this.a = {b: {c: 'exists'}};
},
barChanged: function() {
console.log('I should not be called')
//console.log('I should not be called')
},
validate: function() {
console.log('validate');
//console.log('validate');
chai.assert.equal(this.bar, 'bar', 'custom change observer called');
chai.assert.equal(this.pie, 'pie', 'custom change observer called');
checkDone();
},
validateSubPath: function(oldValue, newValue) {
console.log('validateSubPath', oldValue, newValue);
//console.log('validateSubPath', oldValue, newValue);
chai.assert.equal(newValue, 'exists', 'subpath change observer called');
checkDone();
}
Expand Down

0 comments on commit bf5cc69

Please sign in to comment.