QA/Firefox3.5/ViewSource Testplan: Difference between revisions

From MozillaWiki
< QA‎ | Firefox3.5
Jump to navigation Jump to search
Line 46: Line 46:
   Include notes, links, specs, relevant bugs
   Include notes, links, specs, relevant bugs


* [http://bugzilla.mozilla.org/show_bug.cgi?id=15372 bug 15372] view-source: URLs need overhaul
The page at https://bugzilla.mozilla.org says:* [https://bugzilla.mozilla.org/show_bug.cgi?id=15372 Bug #15372]: view-source: URLs need overhaul
* [http://bugzilla.mozilla.org/show_bug.cgi?id=463176 bug 463176] NS_ERROR_FACTORY_NOT_REGISTERED from nsIDocShellHistory.useGlobalHistory opening view source
* [https://bugzilla.mozilla.org/show_bug.cgi?id=463176 Bug #463176]: NS_ERROR_FACTORY_NOT_REGISTERED from nsIDocShellHistory.useGlobalHistory opening view source
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464314 bug 464314] view-source link-browsing doesn't decode entities
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464314 Bug #464314]: view-source link-browsing doesn't decode entities
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464388 bug 464388] View Source linkification triggers &quot;ASSERTION: Error: no token allocator&quot;
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464388 Bug #464388]: View Source linkification triggers "ASSERTION: Error: no token allocator"
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464727 bug 464727] Incorrect linkification of view-source if newline follows the linkinfied attribute.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464727 Bug #464727]: Incorrect linkification of view-source if newline follows the linkinfied attribute.
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464857 bug 464857] view-source link-browsing is not perfect
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464857 Bug #464857]: view-source link-browsing is not perfect
* [https://bugzilla.mozilla.org/show_bug.cgi?id=79518 Bug #79518]: tracking view source UI
* [https://bugzilla.mozilla.org/show_bug.cgi?id=455888 Bug #455888]: Make View Source not suck (view source meta bug)
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464361 Bug #464361]: Add support for back and forward mouse buttons to View Source
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_2502 Bug #17612#attach_2502]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345121 Bug #17612#attach_345121]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345161 Bug #17612#attach_345161]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345164 Bug #17612#attach_345164]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345170 Bug #17612#attach_345170]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345338 Bug #17612#attach_345338]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_345657 Bug #17612#attach_345657]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_346379 Bug #17612#attach_346379]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_346585 Bug #17612#attach_346585]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612#attach_347755 Bug #17612#attach_347755]: Go to the comment associated with the attachment
* [https://bugzilla.mozilla.org/show_bug.cgi?id=11519 Bug #11519]: * [RFE] Hyperlinkify link attributes in View Page Source.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=155077 Bug #155077]: * [RFE] Make href= and src= to be links to other source of pages.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=214112 Bug #214112]: allow linked-to text files within js and css to be expanded within view source
* [https://bugzilla.mozilla.org/show_bug.cgi?id=224471 Bug #224471]: Turn stylesheet references, and JS src's into hyperlinks
* [https://bugzilla.mozilla.org/show_bug.cgi?id=188694 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
* [https://bugzilla.mozilla.org/show_bug.cgi?id=229995 Bug #229995]: view source doesn't need history or security
* [https://bugzilla.mozilla.org/show_bug.cgi?id=60426 Bug #60426]: Allow users to choose between generated and source html in view-source
* [https://bugzilla.mozilla.org/show_bug.cgi?id=453882 Bug #453882]: view-source needs auto-links and other righteous stuff Chrome's v-s does
* [https://bugzilla.mozilla.org/show_bug.cgi?id=455945 Bug #455945]: View Source should "linkify" links in the source -- i.e. show them as clickable hyperlinks
* [https://bugzilla.mozilla.org/show_bug.cgi?id=17612 Bug #17612]: view-source link-browsing
* [https://bugzilla.mozilla.org/show_bug.cgi?id=464222 Bug #464222]: Relative links not linkified in "View Selection Source"

Revision as of 01:40, 15 November 2008

« 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

The page at https://bugzilla.mozilla.org says:* Bug #15372: view-source: URLs need overhaul