Comments (8)
I did bring in sinon.js
which can do this, see dart wrapper here and documentation here. This is the same library that polymer js uses, so it should be relatively straightforward to port tests.
from polymer_elements.
In the long run, maybe it makes sense to have a package that supports testing web components? I could see it including server mocking and custom matchers (hasChild, attributeExists ,etc) to make testing web components a first class experience.
from polymer_elements.
I ran across Polymer's Web Component Tester. It looks a lot like test, but it adds fixtures, sinon, and a few other things specific to testing web components. I wonder if polymer-dart might add these things in a testing library similar to what dart-lang/http does with its http.testing library.
from polymer_elements.
The normal test package covers a lot of what that does, but we could possibly expose the test/common.dart
file in this package externally. We would probably need to fully flush out the sinon.js
wrapper though.
from polymer_elements.
I published a package wrapping Pretender, a JavaScript server mocking library. It works well for mocking server responses for javascript-based Polymer Elements and has a smaller surface area than sinon. Might be useful if you don't want to wrap sinon.
from polymer_elements.
I'm just starting to looking into porting my polymer 0.5 app to 1.0 and was curious about what was happening with the WCT in Dart. From the videos from the polymer summit it seemed rather useful but of course was in JS (bleh). A darty version would be interesting
from polymer_elements.
The vanilla test package in dart gives you almost everything that WCT does, so it hasn't been a priority.
from polymer_elements.
Then even better. No need to port it
from polymer_elements.
Related Issues (20)
- dart2js iron_localStorage HOT 2
- Cannot add dart objects to Firebase-Collection data HOT 7
- iron-localstorage event HOT 2
- google_map_marker.dart doesn't contain call to setPosition
- iron-collapse tests failing due to missed transitionend event HOT 1
- paper-item in paper-menu require two clicks to fire iron-activate in Firefox in rc6 HOT 3
- PolymerElement inside iron-pages does not display HOT 3
- iron-flex-layout not working HOT 2
- polymer 1 rc14 - error when access to a polymer_element attribute HOT 3
- Impossible to use maps, social ... icons HOT 4
- missing iron-scroll-threshold HOT 5
- Paper drop down content shrinks each time you use it HOT 2
- Autocomplete disabled for <paper-input> HOT 2
- PaperMenuButton set method for openAnimationConfig doesn't accept Dart or JS objects. HOT 1
- What about publishing a 0.3.0+1 version
- Noticed *.test files are being included in build HOT 3
- Broken dialog behaviour in 1.0.0-rc.9 HOT 2
- Firebase_auth.dart should allow optional arguments
- New release on Pub? (1.0.0-rc10)
- Unable to upgrade to polymer_elements 1.0.0-rc.9 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymer_elements.