Only test globals on ES6 browses.

This commit is contained in:
Kevin Schaaf
2017-03-03 16:30:46 -08:00
parent b278977a67
commit 960e87c2a5

View File

@@ -52,6 +52,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
listeners: {
tap: 'handleTap'
},
observeFooDeep() {},
observeFoo() {}
});
});
</script>
@@ -63,6 +65,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
suite('globals', function() {
// Only run on native ES6 browsers, to avoid transpiler globals
try {
eval('class Foo {}');
} catch(e) {
this.skip();
}
var expected = {
origOwnProps: true,