Test 2: Link to Microsummary Generator

Introduction

This page specifies its microsummary via an embedded <link> tag in the page's <head> section that references an XML file containing a microsummary generator that generates the microsummary for this page. The tag looks like this:

<link rel="microsummary" href="test-2-microsummary.xml">

The generator looks like this:

<generator xmlns="http://www.mozilla.org/microsummaries/0.1"
           name="Test 2 Generator">
  <template>
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output method="text"/>
      <xsl:template match="/">
        <xsl:value-of select="/html/body/h1/span"/>
      </xsl:template>
    </xsl:transform>
  </template>
</generator>

Test Steps

Step 1: From the Bookmarks menu, select Bookmark This Page....

Expected Results: The Add Bookmark dialog should appear. It should contain a Summary drop-down menu. A Don't Display a Summary menu item should be the selected item in the menu.

Step 2: Open the Summary drop-down menu.

Expected Results: The menu should contain one other item besides the selected item. If you open the menu before the browser has a chance to download the microsummary content, the other item's label should be the microsummary content URL: http://www.melez.com/mozilla/microsummaries/tests/page-2-microsummary.xml. Otherwise, the other item's label should be the microsummary itself: Test 2.

Step 3: Select the microsummary item from the Summary menu. Select the Bookmarks Toolbar item from the Create in: menu. Click the Add button.

Expected Results: The Add Bookmark dialog should disappear. A bookmark to this page should appear on the bookmarks toolbar. The label of the bookmark should be the microsummary: Test 2.