QA/Firefox3.5/ViewSource Testplan

From MozillaWiki
< QA‎ | Firefox3.5
Revision as of 03:08, 15 November 2008 by Cbartley (talk | contribs) (→‎References)
Jump to navigation Jump to search

« QA/Firefox3.1/TestPlan

Feature <abc> Test Plan

Overview

 Provide an abstract of the feature and the test strategy.  
 Are there particular challenges with testing this feature?

The View Source feature displays the source HTML of a page as the original text, not as rendered markup. The related View Selection Source command displays just the source for the selected range on the page.

View Page Source may be invoked several ways. 1. Select View >> Page Source from the main menu. 2. Select View Page Source from the page context menu. 3. Press Ctrl-U/Cmd-U on the keyboard.

View Selection Source may only be invoked from the context menu when some content on the page is currently selected.

Test Strategy

 List major areas of test coverage
 List areas that will NOT be covered (by developer, third party, etc.)
 Describe how testcases will be created (litmus, mochitests, reftests, gristmill, etc..)

There are three areas of testing.

1. The source displayed must exactly match the source text originally retrieved by the browser. (Question: Can we really guarantee this?) 2. Syntax highlighting is correct. 2a. Syntax highlighting is correct for each type of token for HTML syntax that's correct. 2b. Syntax that is incorrect is highlighted appropriately. 3. The values of SRC and HREF attributes are always treated as URLs, and are represented in the view source display as actual clickable URLs. If a URL is to an HTML file, then clicking the URL should display the contents at that URL as source. For other types of resources, the effect of clicking the URL should be the same as clicking it in the main window. (Latter doesn't make sense for e.g. stylesheets, etc.)

Schedule Scoping

 Estimate amount of time it will take to complete feature
 (Consider nightly builds, security reviews, bugs turnaround time)

The basic view source feature has existed for over 10 years. The most recent addition is the linkification of URL attributes. It is the latter feature that is most in need of testing at this time.

The linkification feature is "complete" at this time, but exhibits a number of bugs, some of them fairly severe. Some of these "bugs" are arguably missing sub-features rather than bugs, but at this point the distinction is probably meaningless.

The linkification feature is new for Firefox 3.1. The amount of time to "complete" the feature has been arbitrarily declared as the amount of time left on 3.1. Bugs/missing sub-features will be triaged and the most important ones will be fixed first. It should be possible to fix all the serious bugs and, hopefully, implement the most serious missing subfeatures in the time remaining. Bugs or missing sub-features which are "annoying" rather than serious can wait until Firefox 3.2 to be addressed if necessary.

References

 Include notes, links, specs, relevant bugs
  • Bug 17612: Bug 17612 – view-source link-browsing
  • Bug 15372: view-source: URLs need overhaul
  • Bug 463176: NS_ERROR_FACTORY_NOT_REGISTERED from nsIDocShellHistory.useGlobalHistory opening view source
  • Bug 464314: view-source link-browsing doesn't decode entities
  • Bug 464339: Links to images and non-textish media should not have view-source: links
  • Bug 464388: View Source linkification triggers "ASSERTION: Error: no token allocator"
  • Bug 464727: Incorrect linkification of view-source if newline follows the linkinfied attribute.
  • Bug 464857: view-source link-browsing is not perfect
  • Bug 79518: tracking view source UI
  • Bug 455888: Make View Source not suck (view source meta bug)
  • Bug 464361: Add support for back and forward mouse buttons to View Source
  • Bug 11519: [RFE] Hyperlinkify link attributes in View Page Source.
  • Bug 155077: [RFE] Make href= and src= to be links to other source of pages.
  • Bug 214112: allow linked-to text files within js and css to be expanded within view source
  • Bug 224471: Turn stylesheet references, and JS src's into hyperlinks
  • Bug 188694: it is easy to view the source of a web, but not that simple to view the source of a javascript .js file
  • Bug 229995: view source doesn't need history or security
  • Bug 60426: Allow users to choose between generated and source html in view-source
  • Bug 453882: view-source needs auto-links and other righteous stuff Chrome's v-s does
  • Bug 455945: View Source should "linkify" links in the source -- i.e. show them as clickable hyperlinks
  • Bug 464222: Relative links not linkified in "View Selection Source"