Revision 67f911250e8d7abb488f199e5ef61a135952c61b authored by Marius Wessel on 08 June 2016, 16:26:42 UTC, committed by Zhiqiang Zhang on 08 June 2016, 16:26:42 UTC
Tests for the Use Cases 'monitor availability of presentation displays', 'starting a new presentation' and 'reconnect to a presentation' for the Presentation API
1 parent 94bca8f
Raw File
historical.html
<!doctype html>
<html>
 <head>
  <meta charset="utf-8">
  <title>Historical features</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
 </head>
 <body>
  <div id="log"></div>
  <script>
    test(function() {
        assert_false('toNativeLineEndings' in window);
    }, '"toNativeLineEndings" should not be supported');

    test(function() {
        assert_false('FileError' in window);
    }, '"FileError" should not be supported');

    test(function() {
        assert_false('FileException' in window);
    }, '"FileException" should not be supported');

    test(function() {
        var b = new Blob();
        var prefixes = ['op', 'moz', 'webkit', 'ms'];
        for (var i = 0; i < prefixes.length; ++i) {
            assert_false(prefixes[i]+'Slice' in b, "'"+prefixes[i]+"Slice' in b");
            assert_false(prefixes[i]+'Slice' in Blob.prototype, "'"+prefixes[i]+"Slice in Blob.prototype");
        }
    }, 'Blob should not support slice prefixed');

    test(function() {
        var prefixes = ['', 'O', 'Moz', 'WebKit', 'MS'];
        for (var i = 0; i < prefixes.length; ++i) {
            assert_false(prefixes[i]+'BlobBuilder' in window, prefixes[i]+'BlobBuilder');
        }
    }, 'BlobBuilder should not be supported.');

    test(function() {
        var reader = new FileReader();
        assert_false('readAsBinaryString' in reader, 'should not be in reader');
        assert_equals(reader.readAsBinaryString, undefined,
                      'should be undefined on getting')
    }, 'FileReader should not support readAsBinaryString');
  </script>
 </body>
</html>
back to top