Changes between Version 4 and Version 5 of Writing Layout Tests to test iOS UI features


Ignore:
Timestamp:
Sep 30, 2015 3:26:15 PM (9 years ago)
Author:
Simon Fraser
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Writing Layout Tests to test iOS UI features

    v4 v5  
    5151so we can use this in our test in some script that would run from the onload handler:
    5252{{{
     53<script>
    5354function runTest()
    5455{
     
    6162    }
    6263}
     64</script>
     65<body onload="runTest()"></body>
    6366}}}
    6467
    65 The script passed in to runUIScript() is just a string. You can pass a string literal here, or, for longer scripts make script tag:
     68The script passed in to runUIScript() is just a string. You can pass a string literal here, or, for longer scripts make script tag and get is context as text:
    6669{{{
    6770<script id="ui-script" type="text/plain">