Re: [media-source-tests] Made utility functions compatible with minimal script test template (#3239)

@wolenetz I merged #3184 without noticing that the style updates actually broke the tests, because dropping <body> means the script is now run before the browser creates it, and thus calling `document.body.appendChild` will now fail.

FWIW, instead of creating the body through code, the test file could also:

1. add the `<div id="log"></div>` tag back, before the last `<script>`, which implicitly forces the creation of `<body>`. That's a bit hidden, though.
2. wrap the last `<script>` in a `<body>` tag as before
3. add the `<video>` tag before the last `<script>`, which would have the same effect but would also make the dependency on that tag more explicit


View on GitHub: https://github.com/w3c/web-platform-tests/pull/3239#issuecomment-228977454

Received on Tuesday, 28 June 2016 07:52:32 UTC