Hey,
I want to send this out to chromium-settings first as a draft, but it's not Settings-specific.
I've uploaded three patches to enable browser tests for Polymer elements.
The first patch adds a blank WebUI at chrome://web-component-test so our tests have somewhere to navigate to -- they need to run from a chrome:// origin so the components can include their stuff.
The second patch adds Mocha to the mix. Mocha has wonderful async support and lets us define granular test suites and test cases without having to have a hundred separate (slow) browser test cases. I've created an "adapter" which reports Mocha results to the browser test framework. TODO: Add Mocha as a real third-party framework.
I expect this framework to grow and evolve, but you can start writing Mocha tests now and they should be relatively stable (use cr_checkbox_tests.js as an example).
PTAL if you care about testing.
Thanks!