Move addEventListener.optional.useCapture.html to dom/ and clean it up.
Move dispatchEvent.return.value.html to dom/ and clean it up.
This fixes test description
Basic single-byte decoder tests
typo
Split up interfaceCheck.
Split up runInvalidSelectorTest.
Split up the Selectors API level 2 tests.
Only run the relevant tests in the new matches and find/findAll tests.
Remove testType arguments.
Split out matches-specific code from level2-lib.js.
Split out find/findAll-specific code from level2-lib.js.
Make traverse work if the root is not an Element.

In particular, this is done in some of the runSpecialSelectorTests calls.
use separate video elements for each subtest

so that other subtests are not affected when each modifies the video element.
use step_func and step_func_done to simplify some tests
expect sourceended after MediaSource.endOfStream() instead of sourceclose

http://www.w3.org/TR/media-source/#mediasource-events
http://www.w3.org/TR/media-source/#idl-def-ReadyState
wrap assert_throws() call in appropriate subtest step
Make simple-array-manual a real manual test

to get consistent test result
Merge pull request #1398 from zqzhang/simple-array-manual

Make simple-array-manual a real manual test
Merge pull request #1388 from Ms2ger/selectors-api-in-place

Restructure selectors-api tests.