dart-archive / polymer_elements Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://pub.dartlang.org/packages/polymer_elements
License: BSD 3-Clause "New" or "Revised" License
Home Page: https://pub.dartlang.org/packages/polymer_elements
License: BSD 3-Clause "New" or "Revised" License
expect(ironTextarea.textarea.selectionStart, equals(2));
Expected: <2>
Actual: <14>
package:test expect
paper_textarea_test.dart 42:7 main.<async>.<fn>.<fn>
Part of #13
Part of #13
blocked on GoogleWebComponents/google-map#183
expect(input.attributes.containsKey('aria-describedby'), isTrue);
Expected: true
Actual: <false>
Community involvement on this one would be great, as there are north of 170 elements/behaviors total. To that end, and also for my own sanity, I am separating this out into a bunch of sub-tasks.
The goal is to just port all existing js tests, not to write tests of our own.
Here https://github.com/GoogleWebComponents/firebase-element/blob/master/demo/x-login.html#L113 a map (object) with username and password is created and passed to the login method
Probably the largest part of #1. This might need to be split into separate tasks.
Some of the tests fail when running pub run test -pdartium
, but interestingly not when you run them manually.
They were removed here 6a08fdf, and tests live here https://github.com/dart-lang/polymer_elements/tree/platinum-tests. There were various issues that need to be investigated to get these to work.
expect(input.attributes.containsKey('aria-describedby'), isTrue);
Expected: true
Actual: <false>
Part of #13
expect(error.getComputedStyle().visibility, equals('hidden'));
Expected: 'hidden'
Actual: 'visible'
Which: is different.
Expected: hidden
Actual: visible
Part of #1. It may end up that some apis are hard to use via js-interop, but porting the tests should flush this out. Please note any issues here. This may also need to be split into a few subtasks.
A number of the paper-radio-button tests call the down helper to click the button without the xy parameter. Making it optional and just passing null to the js method doesn't appear to work (the button doesn't get clicked), so creating this issue for now.
Left these out on the original implementation since we would need to mock out the server to spoof status codes. Also its not particularly interesting on the dart side.
The test runner unfortunately runs them in really small windows, so they fail.
Part of #1. This may need to be split up into multiple sub-tasks.
Part of #1.
Part of #1.
Relatively small number of elements, but it needs to be investigated how well these will even work via js interop. Porting the tests should be a good way to do this though :).
Either through package bots or some other solution, package bots may be the easiest though.
Currently the iron-request, iron-ajax, and iron-form tests are actually serving static files instead of using a mock server. This only supports GET requests, and doesn't allow us to modify response headers/etc, so some tests are being skipped.
This might be a bit complicated since all requests are actually coming from the JS side of things. Might be easiest to just provide a wrapper around a JS mocking library?
Blocked on #40.
I tried iron-list
but it doesn't render any items.
https://github.com/bwu-dart-playground/polymer1/blob/master/iron_list/web/app_element.html#L19
No idea if you're already interested on bug reports about these elements ๐
There are some additional icon sets in the iron-icons repo.
See the skipped test in iron_ajax_test.dart
if (attrsAttr is bool) {
expect(inputAttr, equals("$attrsAttr"));
Expected: 'true'
Actual: ''
Which: is different. Both strings start the same, but the given value is missing the following trailing characters: true
package:test expect
paper_textarea_test.dart 65:11 main.<async>.<fn>.<fn>
I noticed when working on a web component using the new elements that they don't necessarily work when run in browsers other than Dartium. Chrome and Firefox are better than Safari. Given that the end target is javascript, seems reasonable that these should be tested against other browsers in javascript form.
A reasonable start might be to setup automated tests on drone.io for webkit based browsers and Chrome, but that would leave out IE, Edge and Safari. Browserstack might be a better option. I'm not sure if there's a free for open source option available anywhere.
All related to display:none
for error component.
show
method is called after tooltip was removed
Part of #1.
type 'bool' is not a subtype of type 'void' of 'function result'.
package:polymer_elements/paper_input_behavior.dart 171:17 HtmlElement&CustomElementProxyMixin&PolymerProxyMixin&IronFormElementBehavior&PaperInputBehavior.validate
1) down
method is used that seems not to be switching element state
2) all tests are checking aria-checked
attribute but examples on main polymer website seems to be modifiying aria-pressed
attribute
Focusing does not seem to work properly in multi
mode.
pressing enter on tab is not causing a click
expect(c.attributes['aria-label'], equals("Batman"));
Expected: 'Batman'
Actual: 'Robin'
Which: is different.
Expected: Batman
Actual: Robin
^
Differ at offset 0
package:test expect
paper_radio_button_basic_test.dart 73:7 main.<async>.<fn>.<fn>
It passes when you run manually though, so this is lower pri.
Part of #1.
You can use the element in a polymer web app project and see the svg in the dom and query it via a querySelector. The test below, however, fails.
expect(Polymer.dom(b1.$['icon'].jsElement['root']).querySelector('svg'),
isNotNull);
expect(container.jsElement['_addons'].length, equals(1));
Expected: <1>
Actual: <0>
Submitting a form like
<form is="iron-form" id="form" method="post" action="http://localhost:4040/person/new">
<paper-input name="firstName" type="text" label="First" style="display: inline-block;" autofocus></paper-input>
<paper-button><button>Add</button></paper-button>
</form>
handling the request on the server like so
var jsonString = await req.transform(UTF8.decoder).join();
print(req.headers);
print(jsonString);
results in
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.0 (Dart) Safari/537.36
connection: keep-alive
accept: */*
accept-language: en-US,en;q=0.8
accept-encoding: gzip, deflate
origin: http://localhost:63342
content-length: 15
host: localhost:4040
content-type: application/x-www-form-urlencoded
referer: http://localhost:63342/polymer_10_demo/web/index.html
[object Object]
Port paper-dropdown-menu.
Setting aria-label attribute doesn't override actual value in component.
<paper-checkbox id="check3" aria-label="Batman">Robin</paper-checkbox>
expect(c.getAttribute('aria-label'), equals("Batman"));
is failing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.