1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30

content / test / data / accessibility / event / iframe-src-changed.html [blame]

<!--
@AURALINUX-DENY:STATE-CHANGE:DEFUNCT:TRUE*
@AURALINUX-DENY:CHILDREN-CHANGED:*
# Deflake -- load start can be in same serialization as the load complete.
# The load start is fired as a state-change:busy:true. However, if it occurs
# in the same serialization as load complete, busy will already be false.
# In any case, the load-complete event is the important event for Linux/ATK.
@AURALINUX-DENY:STATE-CHANGE:BUSY:TRUE*
-->
<!DOCTYPE html>
<html>
<head><title>Outer Document</title></head>
<body>
<iframe id="iframe"></iframe>
<script>
  var go_passes = [
    () => document.getElementById("iframe").srcdoc =
      "<head><title>Inner Document 1</title></head><body>foo</body>",
    () => document.getElementById("iframe").srcdoc =
      "<head><title>Inner Document 2</title></head><body>bar</body>",
  ];

  var current_pass = 0;
  function go() {
    go_passes[current_pass++].call();
    return current_pass < go_passes.length;
  }
</script>
</body>
</html>