[Webkit-unassigned] [Bug 39026] Recognize async attribute on script tags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 23:30:25 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39026





--- Comment #9 from Eric Seidel <eric at webkit.org>  2010-06-01 23:30:22 PST ---
(From update of attachment 57624)
We haven't yet shown you the wonderful world of script-tests it seems.

Your long mass of:
+<script>
+if (isParserInsertedScriptAsync("async") === true)
+    writePass("p1");
+</script>

Could be fixed by making isParserInsertedScriptAsync work on an iframe (newly created or otherwise), and then using:

shouldBeTrue("isParserInsertedScriptAsync('async')");

That will do all the beautiful "PASS", "FAIL" stuff for you.  script-tests are javascript files only.

You can see lots of examples in LayoutTests looking in the script-tests directory.  Sadly they only work (easily) for .html files, however you can use the scirpt-test scripts (fast/js/resources/js-test-pre.js and -post.js) in any file, including a .svg file.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list