mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
fix test linting from #3350
This commit is contained in:
parent
49d04b0dd7
commit
37f7157b12
@ -616,16 +616,16 @@
|
||||
value: function() {
|
||||
return function(message) {
|
||||
return 'translated: ' + message;
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
_computeTranslateFn: function(translator) {
|
||||
return function(message) {
|
||||
return translator(message);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
});
|
||||
})();
|
||||
@ -649,16 +649,16 @@
|
||||
computed: '_computeTranslateFn(translator)'
|
||||
},
|
||||
translator: {
|
||||
type: Function,
|
||||
},
|
||||
type: Function
|
||||
}
|
||||
},
|
||||
|
||||
_computeTranslateFn: function(translator) {
|
||||
return function(message) {
|
||||
return translator(message);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
});
|
||||
</script>
|
||||
</dom-module>
|
||||
</dom-module>
|
||||
|
@ -284,7 +284,7 @@ suite('single-element binding effects', function() {
|
||||
'binding-with-dash': 'yes'
|
||||
};
|
||||
assert.equal(el.$.boundWithDash.textContent, 'yes');
|
||||
})
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@ -312,7 +312,7 @@ suite('computed bindings with dynamic functions', function() {
|
||||
|
||||
el.translator = function(message) {
|
||||
return 'changed: ' + message;
|
||||
}
|
||||
};
|
||||
|
||||
assert.equal(el.$.check.textContent, 'changed: Hello World.');
|
||||
});
|
||||
@ -335,17 +335,17 @@ suite('computed bindings with dynamic functions', function() {
|
||||
is: 'x-observer-with-dynamic-function',
|
||||
properties: {
|
||||
translate: {
|
||||
type: Function,
|
||||
type: Function
|
||||
},
|
||||
message: {
|
||||
type: String,
|
||||
value: 'Hello'
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
observers: ['translate(message)'],
|
||||
observers: ['translate(message)']
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
el = document.createElement('x-observer-with-dynamic-function');
|
||||
document.body.appendChild(el);
|
||||
|
Loading…
Reference in New Issue
Block a user