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

From MozillaWiki
< QA‎ | Firefox3.5
Jump to navigation Jump to search
Line 53: Line 53:
* [http://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=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.
* [http://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
* [http://bugzilla.mozilla.org/show_bug.cgi?id=79518 Bug 79518]: tracking view source UI
* [http://bugzilla.mozilla.org/show_bug.cgi?id=79518 Bug 79518]: tracking view source UI
* [http://bugzilla.mozilla.org/show_bug.cgi?id=455888 Bug 455888]: Make View Source not suck (view source meta bug)
* [http://bugzilla.mozilla.org/show_bug.cgi?id=455888 Bug 455888]: Make View Source not suck (view source meta bug)
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464361 Bug 464361]: Add support for back and forward mouse buttons to View Source
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464361 Bug 464361]: Add support for back and forward mouse buttons to View Source
* [http://bugzilla.mozilla.org/show_bug.cgi?id=11519 Bug 11519]: [RFE] Hyperlinkify link attributes in View Page Source.
* [http://bugzilla.mozilla.org/show_bug.cgi?id=155077 Bug 155077]: [RFE] Make href= and src= to be links to other source of pages.
* [http://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
* [http://bugzilla.mozilla.org/show_bug.cgi?id=224471 Bug 224471]: Turn stylesheet references, and JS src's into hyperlinks
* [http://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
* [http://bugzilla.mozilla.org/show_bug.cgi?id=229995 Bug 229995]: view source doesn't need history or security
* [http://bugzilla.mozilla.org/show_bug.cgi?id=229995 Bug 229995]: view source doesn't need history or security
* [http://bugzilla.mozilla.org/show_bug.cgi?id=60426 Bug 60426]: Allow users to choose between generated and source html in view-source
* [http://bugzilla.mozilla.org/show_bug.cgi?id=60426 Bug 60426]: Allow users to choose between generated and source html in view-source
* [http://bugzilla.mozilla.org/show_bug.cgi?id=453882 Bug 453882]: view-source needs auto-links and other righteous stuff Chrome's v-s does
* [http://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
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464222 Bug 464222]: Relative links not linkified in "View Selection Source"
* [http://bugzilla.mozilla.org/show_bug.cgi?id=464222 Bug 464222]: Relative links not linkified in "View Selection Source"



Revision as of 04:54, 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
  • 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 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 229995: view source doesn't need history or security
  • Bug 60426: Allow users to choose between generated and source html in view-source
  • Bug 464222: Relative links not linkified in "View Selection Source"



 Bug 79518: Bug 79518 – tracking view source UI
  • Bug 8589: make view source optionally open in text/plain helper app
  • Bug 11520: Ability to view stylesheet source.
  • Bug 15364: Add line numbers to View Source
  • Bug 17612: view-source link-browsing
  • Bug 21296: Can't use Mac menu bar with a menuless window (or modal dialog) in front
  • Bug 22022: no wrapping in view source
  • Bug 28809: [RFE] View Source at Selection
  • Bug 39389: No context menus in "view source" window
  • Bug 47139: Make page source tabbed, each tab representing a frame
  • Bug 49721: [RFE] View Partial Source capability
  • Bug 50877: Menu items don't work in View Source window
  • Bug 55583: view-source should show original page source (use cached source)
  • Bug 57722: view-source leaves out whitespace at end of document
  • Bug 59489: Cannot print page source
  • Bug 60426: Allow users to choose between generated and source html in view-source
  • Bug 63026: Give me the menu in View Source back
  • Bug 63137: [FIX]View Source converts tags to lower case
  • Bug 71173: find only works once in view page source window
  • Bug 74862: Ability to save highlighted source in view-source
  • Bug 76250: enable Page Info menu item in View Source
  • Bug 77337: [FIX]view-source: does not allow viewing of many text files
  • Bug 78619: View-source: pages have a view source option if opened by hyperlink
  • Bug 79339: stop spawning view-source: urls in a new window when we support view-source: recursion
  • Bug 80598: View source window does not focus the content area when it's brought up
  • Bug 85752: move viewsource search menuitems to edit and kill the search menu
  • Bug 85908: Add reload to View Page Source Window
  • Bug 87787: need a stop button for view source
  • Bug 99676: ctrl-e in viewsource causes composer to load highlighted source
  • Bug 169198: Add "Raw View" tab to View Source window
  • Bug 202659: remove items from edit menu in view source
  • Bug 71137: need CVS commit account for katakai@japan.sun.com
  • Bug 79399: bad refresh of tranparent GIF used as list item marker
  • Bug 87514: Lots of menus/menu items disappear when a source window has focus
  • Bug 64100: view-source doesn't work for pages generated via forms with method=POST
  • Bug 214112: allow linked-to text files within js and css to be expanded within view source


 Bug 455888: Bug 455888 – Make View Source not suck (view source meta bug)
  • Bug 11520: Ability to view stylesheet source.
  • Bug 17612: view-source link-browsing
  • Bug 246620: Add line numbers to View Source for Firefox
  • Bug 455945: View Source should "linkify" links in the source -- i.e. show them as clickable hyperlinks
  • Bug 455948: The view source window should have a toolbar with toggle-line-wrap and goto-line buttons.