mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Make tests pass (#374)
* wct misbehaves on hyphen casing on FF * Upgrade web-component-tester to 6.0.0 * Update some bower packages to prevent conflicts * Pin webcomponentsjs to 1.0.4
This commit is contained in:
parent
fb3c278a74
commit
7c489e69bb
14
bower.json
14
bower.json
@ -13,7 +13,7 @@
|
|||||||
"app-storage": "^2.0.2",
|
"app-storage": "^2.0.2",
|
||||||
"fecha": "~2.3.0",
|
"fecha": "~2.3.0",
|
||||||
"font-roboto-local": "~1.0.1",
|
"font-roboto-local": "~1.0.1",
|
||||||
"google-apis": "GoogleWebComponents/google-apis#~1.1.6",
|
"google-apis": "GoogleWebComponents/google-apis#~2.0.0",
|
||||||
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.0.0",
|
"iron-autogrow-textarea": "PolymerElements/iron-autogrow-textarea#^2.0.0",
|
||||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.0",
|
"iron-flex-layout": "PolymerElements/iron-flex-layout#^2.0.0",
|
||||||
"iron-icon": "PolymerElements/iron-icon#^2.0.0",
|
"iron-icon": "PolymerElements/iron-icon#^2.0.0",
|
||||||
@ -49,9 +49,10 @@
|
|||||||
"paper-toggle-button": "PolymerElements/paper-toggle-button#^2.0.0",
|
"paper-toggle-button": "PolymerElements/paper-toggle-button#^2.0.0",
|
||||||
"polymer": "Polymer/polymer#~2.0.2",
|
"polymer": "Polymer/polymer#~2.0.2",
|
||||||
"polymer-sortablejs": "^0.1.3",
|
"polymer-sortablejs": "^0.1.3",
|
||||||
"vaadin-combo-box": "vaadin/vaadin-combo-box#v2.0.0-alpha4",
|
"vaadin-combo-box": "vaadin/vaadin-combo-box#^2.0.0",
|
||||||
"vaadin-date-picker": "vaadin/vaadin-date-picker#v2.0.0-alpha1",
|
"vaadin-date-picker": "vaadin/vaadin-date-picker#^2.0.0",
|
||||||
"web-animations-js": "^2.2.5"
|
"web-animations-js": "^2.2.5",
|
||||||
|
"webcomponentsjs": "1.0.4"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"iron-a11y-announcer": "^2.0.0",
|
"iron-a11y-announcer": "^2.0.0",
|
||||||
@ -110,6 +111,9 @@
|
|||||||
"paper-toast": "^2.0.0",
|
"paper-toast": "^2.0.0",
|
||||||
"paper-toggle-button": "^2.0.0",
|
"paper-toggle-button": "^2.0.0",
|
||||||
"polymer": "^2.0.2",
|
"polymer": "^2.0.2",
|
||||||
"webcomponentsjs": "^v1.0.2"
|
"webcomponentsjs": "1.0.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"web-component-tester": "^6.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,6 +65,6 @@
|
|||||||
"sw-precache": "^5.2.0",
|
"sw-precache": "^5.2.0",
|
||||||
"uglify-js": "^3.0.27",
|
"uglify-js": "^3.0.27",
|
||||||
"vulcanize": "^1.16.0",
|
"vulcanize": "^1.16.0",
|
||||||
"web-component-tester": "^5.0.1"
|
"web-component-tester": "^6.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
<link rel="import" href="../src/components/entity/state-info.html">
|
<link rel="import" href="../src/components/entity/state-info.html">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<test-fixture id="state-info-secondary-line">
|
<test-fixture id="stateInfoSecondaryLine">
|
||||||
<template>
|
<template>
|
||||||
<state-info secondary-line><my-elem>text</my-elem></state-info>
|
<state-info secondary-line><my-elem>text</my-elem></state-info>
|
||||||
</template>
|
</template>
|
||||||
</test-fixture>
|
</test-fixture>
|
||||||
<test-fixture id="state-info">
|
<test-fixture id="stateInfo">
|
||||||
<template>
|
<template>
|
||||||
<state-info></state-info>
|
<state-info></state-info>
|
||||||
</template>
|
</template>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
var si;
|
var si;
|
||||||
|
|
||||||
setup(function() {
|
setup(function() {
|
||||||
si = fixture('state-info');
|
si = fixture('stateInfo');
|
||||||
window.HAWS = {};
|
window.HAWS = {};
|
||||||
window.HAWS.extractDomain = function (entityId) {
|
window.HAWS.extractDomain = function (entityId) {
|
||||||
return entityId.substr(0, entityId.indexOf('.'));
|
return entityId.substr(0, entityId.indexOf('.'));
|
||||||
@ -84,7 +84,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('secondary line', function(done) {
|
test('secondary line', function(done) {
|
||||||
si = fixture('state-info-secondary-line');
|
si = fixture('stateInfoSecondaryLine');
|
||||||
si.stateObj = {entity_id: 'light.demo', last_changed: '2017-01-01T00:00:00+00:00', state: 'off', attributes: {friendly_name: 'Name'}};
|
si.stateObj = {entity_id: 'light.demo', last_changed: '2017-01-01T00:00:00+00:00', state: 'off', attributes: {friendly_name: 'Name'}};
|
||||||
si.inDialog = false;
|
si.inDialog = false;
|
||||||
flush(function() {
|
flush(function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user