Wrote test for img-src-4_1

http://www.w3.org/Security/wiki/Test_Assertions_For_Content_Security_Policy#Test_Assertions_for_img-src_directive
navigator.getBattery() test

According to Battery Status API CR on 09 December 2014, pepole who want
to use Battery API should use getBattery method. But existing tests are
based on WD and don't use getBattery method. So, I try to test this
method.
Add a manual test for :active and :hover quirk
Don't preventDefault onmousedown/up since that broke :active in gecko
Hard-code what is supposed to match :link, :visited
Fix pass condition for :active to match the HTML spec
Check parent chain. Use separate test()s for each check.
Add tests for :matches() and ::before
move to img-src directory, content cleanup
whitespace
Merge pull request #1201 from bcomnes/img-src-4_1

Wrote test for img-src-4_1
Revert :active pass condition. Any element can match when activated with pointing device.
Improve robustness when adding done class
Reorder and add comments about the test()s
Remove useless 'Test' in test names
Remove unused 'style' id/property
Merge pull request #1475 from zcorpan/quirk-active-hover

Add a manual test for :active and :hover quirk
Fix the selectors to include all (visible) elements in :hover/:active quirk test
Merge pull request #1476 from zcorpan/quirk-active-hover-fixup

Fix the selectors to include all (visible) elements in :hover/:active quirk test
load an external page instead of using data: as that leads to xorigin issues