QA/Firefox3.5/TestPlan/Script Defer: Difference between revisions

From MozillaWiki
< QA‎ | Firefox3.5‎ | TestPlan
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 5: Line 5:
= Overview =
= Overview =


  Provide an abstract of the feature and the test strategy.   
Script defer is a feature that has been in IE and other browsers for years since the HTML 4 specBasically this is an attribute for the <script> tag where we can defer loading one or more scripts so the page content will load without waiting for large or cross-domain scripts.
  Are there particular challenges with testing this feature?


= Test Strategy =
= Test Strategy =


  List major areas of test coverage
*defer loading of script and verify page loads
  List areas that will NOT be covered (by developer, third party, etc.)
*queuing of local scripts
  Describe how testcases will be created (litmus, mochitests, reftests, gristmill, etc..)
**queue 2 scripts, other still loads
**queue a script that references other scripts
 
*accessing variables / functions from deferred script
**have inline script call function in deferred script
**have inline script update variable in deferred script
 
There are a lot of corner cases such as testing all javascript functionality in both normal and defer.  One such bug came up where window.onload() would not call [[https://bugzilla.mozilla.org/show_bug.cgi?id=453801 bug 453801]]


= Schedule Scoping =
= Schedule Scoping =
 
 
  Estimate amount of time it will take to complete feature
*Landed in September
  (Consider nightly builds, security reviews, bugs turnaround time)
*Available in 3.1
*Many test cases included in bug
*Estimate 1 full day to develop and execute test cases


= References =
= References =


*[[https://bugzilla.mozilla.org/show_bug.cgi?id=28293| bug 28293]]
*[[https://bugzilla.mozilla.org/show_bug.cgi?id=28293 bug 28293]]
*[[http://www.whatwg.org/specs/web-apps/current-work/#attr-script-defer| WHATWG spec]]
*[[http://www.whatwg.org/specs/web-apps/current-work/#attr-script-defer WHATWG spec]]

Latest revision as of 03:48, 24 March 2009

« QA/Firefox3.1/TestPlan

Feature Script Defer Test Plan

Overview

Script defer is a feature that has been in IE and other browsers for years since the HTML 4 spec. Basically this is an attribute for the <script> tag where we can defer loading one or more scripts so the page content will load without waiting for large or cross-domain scripts.

Test Strategy

  • defer loading of script and verify page loads
  • queuing of local scripts
    • queue 2 scripts, other still loads
    • queue a script that references other scripts
  • accessing variables / functions from deferred script
    • have inline script call function in deferred script
    • have inline script update variable in deferred script

There are a lot of corner cases such as testing all javascript functionality in both normal and defer. One such bug came up where window.onload() would not call [bug 453801]

Schedule Scoping

  • Landed in September
  • Available in 3.1
  • Many test cases included in bug
  • Estimate 1 full day to develop and execute test cases

References