Test using web-component-tester, change shadowRoot to Polymer's shadowRoots['ajax-form'], and update to Polymer 0.5.1

Firefox doesn't work yet for the WCT test's; the url gets passed wrong - but this could be something to do with my configuration.

This does add the requirement of WCT, which adds the requirement of Java. You can also spin up a tiny webserver, navigate to test/index.html, and run the tests in the browser manually. It's quite a bit faster than running wct.

Pull request resolves #23, closes #16, and (hopefully?) fixes #28 
I'm curious if that's the problem with ie or not - it works fine for me
without any special configuration (ie11 on win 8.1, using Java 8 sdk)

On Mon, Dec 1, 2014, 19:09 Trystan <trystan.johnson@gmail.com> wrote:

> Ah, you're right, and I forgot to mention that. I'm not sure if it's cuz
> we're jumping the gun or what, but I couldn't find a Bower install for wct
> (and so I had to global and local install it, then reference the local
> browser.js)
>
> On Mon, Dec 1, 2014, 19:07 Sebastian Bean <notifications@github.com>
> wrote:
>
>> In test/ajax-form-tests.html:
>>
>> > @@ -0,0 +1,176 @@
>> > +<!doctype html>
>> > +<html>
>> > +<head>
>> > +    <meta charset="UTF-8">
>> > +    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
>> > +    <title>seed-element</title>
>> > +
>> > +
>> > +    <!-- Import dependencies -->
>> > +    <script src="../bower_components/webcomponentsjs/webcomponents.min.js"></script>
>> > +    <script src="../node_modules/web-component-tester/browser.js"></script>
>>
>> This points at a locally install web-component-tester folder.
>> These instructions
>> <https://github.com/PolymerLabs/seed-element/blob/master/test/basic-test.html>
>> mention wct should be installed globally ( npm install -g
>> web-component-tester )
>>
>> The test project also puts all it's bower dependencies one folder up
>> (same depth as the seed-element project itself)
>> https://github.com/PolymerLabs/seed-element/blob/master/.bowerrc
>>
>> The seed-element test project that's up on PolymerLabs git seems to use a bower
>> dependency
>> <https://github.com/PolymerLabs/seed-element/blob/master/bower.json#L25>
>> to get to that browser.js file
>> <https://github.com/PolymerLabs/seed-element/blob/master/test/basic-test.html#L18>
>> .
>>
>> https://github.com/PolymerLabs/seed-element/blob/
>> master/test/basic-test.html
>>
>> Wondering if this is causing any issues with my tests failing.
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/garstasio/ajax-form/pull/29/files#r21134175>.
>>
>