Revision 90df068fa92f00e3423317e966405271cc23a787 authored by Alex Vallée on 31 October 2017, 15:58:07 UTC, committed by Chromium WPT Sync on 31 October 2017, 15:58:07 UTC
Check that the correct value of activeElement in an iframe after losing
focus in the parent frame.

The behaviour is wrong in Chrome + OOPIF.

BUG=755023

Change-Id: I30b3cdce0842115ba9e8249181bf25eb84bb8214
1 parent 58b7239
Raw File
disable-remote-playback-cancel-watch-availability-throws.html
<!DOCTYPE html>
<html>
<title>Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws an exception</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
<script>
async_test(t => {
  var v = document.createElement('video');
  v.src = getVideoURI('movie_5');

  v.remote.watchAvailability(function() {})
    .then(id => {
      v.disableRemotePlayback = true;
      v.remote.cancelWatchAvailability(id).then(
        t.unreached_func(),
        t.step_func(e => {
          assert_equals(e.name, 'InvalidStateError');
          v.remote.cancelWatchAvailability().then(
            t.unreached_func(),
            t.step_func_done(e => {
              assert_equals(e.name, 'InvalidStateError');
            })
          );
        }));
    }, t.unreached_func());
}, 'Test that calling cancelWatchAvailability() when disableRemotePlayback attribute is set throws an exception.');
</script>
</html>
back to top