Changeset 84360 in webkit


Ignore:
Timestamp:
Apr 20, 2011 5:45:31 AM (13 years ago)
Author:
yurys@chromium.org
Message:

2011-04-20 Yury Semikhatsky <yurys@chromium.org>

Reviewed by Tony Gentilcore.

http/tests/misc/unloadable-script.html fails if <script> error event doesn't bubble
https://bugs.webkit.org/show_bug.cgi?id=58981

  • http/tests/misc/unloadable-script.html: canged the test so that it uses <script onerror> instead od <body onerror>
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84357 r84360  
     12011-04-20  Yury Semikhatsky  <yurys@chromium.org>
     2
     3        Reviewed by Tony Gentilcore.
     4
     5        http/tests/misc/unloadable-script.html fails if <script> error event doesn't bubble
     6        https://bugs.webkit.org/show_bug.cgi?id=58981
     7
     8        * http/tests/misc/unloadable-script.html: canged the test so that it uses <script onerror> instead
     9        od <body onerror>
     10
    1112011-04-20  Yury Semikhatsky  <yurys@chromium.org>
    212
  • trunk/LayoutTests/http/tests/misc/unloadable-script.html

    r72830 r84360  
    77  document.getElementById("console").appendChild(p);
    88}
     9
     10function handleScriptOnError()
     11{
     12    log('onerror called (good!)');
     13}
    914</script>
    1015</head>
    11 <body onerror="log('onerror called (good!)')">
     16<body>
    1217    <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13584">bug 13584</a>:
    1318    &lt;script> code wrongly assumes requests can't fail.</p>
     
    1621    <div id=console></div>
    1722   
    18     <script id=test_script></script>
     23    <script onerror="handleScriptOnError()" id=test_script></script>
    1924
    2025    <script>
     
    2732        script = document.createElement("script");
    2833        script.setAttribute("src", "file:///foobar");
     34        script.setAttribute("onerror", "handleScriptOnError()");
    2935        document.body.appendChild(script);
    3036    </script>
Note: See TracChangeset for help on using the changeset viewer.