-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from xdoo/_#257
Erster Polymer Unit Test mit Webcomponent Tester
- Loading branch information
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | ||
|
||
<title>my-view1</title> | ||
|
||
<script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></script> | ||
<script src="../bower_components/web-component-tester/browser.js"></script> | ||
|
||
<!-- Import the element to test --> | ||
<link rel="import" href="../src/common-libs/animad-list-header.html"> | ||
</head> | ||
<body> | ||
<test-fixture id="BasicAnimadListHeader"> | ||
<template> | ||
<animad-list-header id="basic-animad-list-header"></animad-list-header> | ||
</template> | ||
</test-fixture> | ||
|
||
<script> | ||
suite('animad-list-header tests', function() { | ||
test('Test Placeholder Defaults', function() { | ||
var basicAnimadListHeader = fixture('BasicAnimadListHeader'); | ||
var searchBar = basicAnimadListHeader.shadowRoot.querySelector('#search-bar'); | ||
console.log(searchBar); | ||
assert.equal(basicAnimadListHeader.placeholderSearch, 'Search'); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters