Revision 64da316928b38f3dbd2231dbfb0f7f776170a106 authored by Brad Werth on 11 April 2018, 09:35:18 UTC, committed by moz-wptsync-bot on 11 April 2018, 09:35:18 UTC
This test is designed to check that the float area is calculated from the
first frame of an animated GIF. The reference rendering is a solid green
square with the lower-left of the square supplied by the pixels in the GIF.
Frame 2 of the GIF has white pixels in that quadrant. If layout is completed
and onload is fired while frame 2 is showing, the test will fail even though
the float area has been correctly calculated. This change puts green in the
lower-left quadrant of all frames of the GIF so that the test is only testing
the float area and not also testing that onload fires while a certain frame
is showing.

Note that this change doesn't impact the thoroughness of how we're testing
shape-outside because it changes only the color of the pixels and not their
opacity, and the float area is calculated from the alpha of the pixels.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1404222
gecko-commit: 491be7851cfc3e4959af6e22a1adf70d5f7bb168
gecko-integration-branch: central
1 parent a4e013a
Raw File
table_new-manual.html
<!doctype html>
<html>
  <head>
    <title>table NEW</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <link rel="stylesheet" href="/resources/testharness.css">
    <link rel="stylesheet" href="/wai-aria/scripts/manual.css">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/wai-aria/scripts/ATTAcomm.js"></script>
    <script>
    setup({explicit_timeout: true, explicit_done: true });

    var theTest = new ATTAcomm(
    {
   "steps" : [
      {
         "element" : "test",
         "test" : {
            "ATK" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_TABLE"
               ],
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "xml-roles:table"
               ],
               [
                  "property",
                  "interfaces",
                  "contains",
                  "Table"
               ]
            ],
            "AXAPI" : [
               [
                  "property",
                  "AXRole",
                  "is",
                  "AXTable"
               ],
               [
                  "property",
                  "AXSubrole",
                  "is",
                  "<nil>"
               ],
               [
                  "property",
                  "AXRoleDescription",
                  "is",
                  "table"
               ],
               [
                  "property",
                  "AXColumnHeaderUIElements",
                  "is",
                  "[colheader1, colheader2]"
               ],
               [
                  "property",
                  "AXHeader",
                  "is",
                  "AXGroup"
               ],
               [
                  "property",
                  "AXRowHeaderUIElements",
                  "is",
                  "[rowheader1, rowheader2]"
               ]
            ],
            "IAccessible2" : [
               [
                  "property",
                  "objectAttributes",
                  "contains",
                  "xml-roles:table"
               ],
               [
                  "property",
                  "interfaces",
                  "contains",
                  "IAccessibleTable2"
               ]
            ],
            "MSAA" : [
               [
                  "property",
                  "role",
                  "is",
                  "ROLE_SYSTEM_TABLE"
               ]
            ],
            "UIA" : [
               [
                  "property",
                  "ControlType",
                  "is",
                  "Table"
               ],
               [
                  "property",
                  "Control Pattern",
                  "is",
                  "Grid"
               ],
               [
                  "property",
                  "Control Pattern",
                  "is",
                  "Table"
               ]
            ]
         },
         "title" : "step 1",
         "type" : "test"
      }
   ],
   "title" : "table NEW"
}

    ) ;
    </script>
  </head>
  <body>
  <p>This test examines the ARIA properties for table NEW.</p>
    <div role='table' id='test'>
    <div role='row' id='headerrow'>
      <div role='columnheader' id='colheader1'>content</div>
      <div role='columnheader' id='colheader2'>content</div>
    </div>
    <div role='row'>
      <div role='rowheader' id='rowheader1'>content</div>
      <div role='cell'>content</div>
    </div>
    <div role='row'>
      <div role='rowheader' id='rowheader2'>content</div>
      <div role='cell'>content</div>
    </div>
  </div>

  <div id="manualMode"></div>
  <div id="log"></div>
  <div id="ATTAmessages"></div>
  </body>
</html>
back to top