Add tests for exiting from nested fullscreen

Tests for https://github.com/whatwg/fullscreen/pull/72.

Before that change, the per-spec pass condition for the nested-in-iframe
case would have been to exit fully to the outer document, which was a
spec bug and doesn't match implementations.

In order to automate these tests, it was necessary to teach
auto-click.js to traverse out of iframes to take their position into
account.

These tests have also been run manually in Firefox Nightly and confirmed
to pass there.

Actually adopting the new spec wording will be part of relanding issue
402376, together with other necessary spec changes.

BUG=402376

Review-Url: https://codereview.chromium.org/2706293013
Cr-Commit-Position: refs/heads/master@{#452841}
4 files changed