mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Fix failing tests.
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
|
||||
<dom-module id="x-compose">
|
||||
<template>
|
||||
<x-basic id="basic"></x-basic>
|
||||
<x-basic id="basic" class="should-not-override"></x-basic>
|
||||
</template>
|
||||
</dom-module>
|
||||
<script>
|
||||
|
||||
@@ -279,10 +279,7 @@ suite('hostAttributes', function() {
|
||||
assert.notOk(compose.$.basic.classList.contains('foo'));
|
||||
assert.notOk(compose.$.basic.classList.contains('bar'));
|
||||
assert.notOk(compose.$.basic.classList.contains('baz'));
|
||||
if (!Polymer.Settings.useNativeShadow) {
|
||||
assert(compose.$.basic.classList.contains('style-scope'));
|
||||
assert(compose.$.basic.classList.contains('x-compose'));
|
||||
}
|
||||
assert(compose.$.basic.classList.contains('should-not-override'));
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -175,9 +175,11 @@ suite('single-element binding effects', function() {
|
||||
});
|
||||
|
||||
test('annotated dataset attribute binding', function() {
|
||||
el.dataSetId = 'yeah';
|
||||
assert.equal(el.$.boundChild.dataset.id, 'yeah', 'dataset.id dataset property not set correctly');
|
||||
assert.equal(el.$.boundChild.getAttribute('data-id'), 'yeah', 'data-id attribute not set correctly');
|
||||
if (el.$.boundChild.datast) { // IE10, sigh
|
||||
el.dataSetId = 'yeah';
|
||||
assert.equal(el.$.boundChild.dataset.id, 'yeah', 'dataset.id dataset property not set correctly');
|
||||
assert.equal(el.$.boundChild.getAttribute('data-id'), 'yeah', 'data-id attribute not set correctly');
|
||||
}
|
||||
});
|
||||
|
||||
test('custom notification event to property', function() {
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<div id="computed" class$="{{computeClass(aClass)}}">Computed</div>
|
||||
<div id="repeatContainer">
|
||||
<template id="repeat" is="x-repeat" items="{{items}}">
|
||||
<a class$="{{parent.aaClass}}">A Computed</a>
|
||||
<a class$="{{aaClass}}">A Computed</a>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user