<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.inkscape.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kamalpreet</id>
	<title>Inkscape Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.inkscape.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kamalpreet"/>
	<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/Special:Contributions/Kamalpreet"/>
	<updated>2026-05-14T10:08:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101746</id>
		<title>Style Editor Tests</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101746"/>
		<updated>2016-08-15T16:20:31Z</updated>

		<summary type="html">&lt;p&gt;Kamalpreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Style Editor Tests=&lt;br /&gt;
&lt;br /&gt;
See [[Style Editor]] for description of dialog.&lt;br /&gt;
&lt;br /&gt;
All tests begin by:&lt;br /&gt;
  1. Opening Inkscape.&lt;br /&gt;
  2. Opening the Style dialog (Object-&amp;gt;Style dialog...)&lt;br /&gt;
  3. Opening the XML Editor dialog (Edit-&amp;gt;XML Editor... or Shift+Ctrl+X).&lt;br /&gt;
  4. Expanding the &amp;lt;style&amp;gt; element content in the XML editor.&lt;br /&gt;
&lt;br /&gt;
== Simple ID Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ #rect10&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
          --&amp;gt; An arrow shows up as an expand tree icon, clicking which tree expands and shows &amp;quot;ⓧ #rect10&amp;quot;. (OS - Ubuntu &lt;br /&gt;
              14.04)&lt;br /&gt;
&lt;br /&gt;
2. Select simple ID selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple ID selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ #rect10&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Deletion of simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. With &amp;quot;'+' #rect10&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Simple Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple Class selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Replace &amp;quot;#rect10&amp;quot; by &amp;quot;.red&amp;quot; in pop entry.&lt;br /&gt;
  5. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ .red&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;.red { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (⊞) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
          --&amp;gt; An arrow shows up as an expand tree icon, clicking which tree expands and shows &amp;quot;ⓧ #rect10&amp;quot;. (OS - Ubuntu &lt;br /&gt;
              14.04)&lt;br /&gt;
&lt;br /&gt;
2. Select simple class selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple class selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ .red&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Removal of class selector value.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. Expand the subtree by clicking on ☒.&lt;br /&gt;
  2. Click on the ⓧ in front of #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The 'class' attribute in &amp;lt;rect id=&amp;quot;rect10&amp;quot;.../&amp;gt; is removed. (Since 'red' was the only entry in the 'class' value, its removal causes the 'class' to be removed.)&lt;br /&gt;
&lt;br /&gt;
  Status: Fail. The ⊞ icon is missing so the subtree cannot be expanded to show the entry for the rectangle.&lt;br /&gt;
&lt;br /&gt;
5. Deletion of simple class selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 4 (or 1).&lt;br /&gt;
  1. With &amp;quot;'+' ⊞ .red&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;.red { ... }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass.&lt;br /&gt;
&lt;br /&gt;
== Adding Object to Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1 in previous section (after creation of &amp;quot;.red&amp;quot; selector). &lt;br /&gt;
  1. Select the line &amp;quot;'+' ⊞ .red&amp;quot; in Style dialog.&lt;br /&gt;
  2. Add another rectangle to the drawing.&lt;br /&gt;
  3. With new rectangle selected, click on &amp;quot;+&amp;quot; in the beginning of selected row in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'-' #rect14&amp;quot; with &amp;quot;'+' ⊞ .red&amp;quot; as the parent row.&lt;br /&gt;
  X. NO! -&amp;gt; An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect14 { ... }. (The selector &amp;quot;.red&amp;quot; will match #rect14 as it is a class selector. Adding &amp;quot;#rect14 { ... } is adding a new &amp;quot;id&amp;quot; selector.)&lt;br /&gt;
  2. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect14&amp;quot;.&lt;br /&gt;
  3. The &amp;quot;red&amp;quot; value should not be duplicated in the &amp;quot;class&amp;quot; attribute of any other object with the &amp;quot;class&amp;quot; &amp;quot;red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Removing Object from Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  Starting at end of previous test:&lt;br /&gt;
  1. Select the object row (child row of &amp;quot;'+' ⊞ .red&amp;quot;) #rect14, to be deleted from &amp;quot;.red&amp;quot; selector. The representation &lt;br /&gt;
     can be viewed as:&lt;br /&gt;
     &amp;quot;'+' ⊞ .red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ      #rect10&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ      #rect14&amp;quot;&lt;br /&gt;
  2. Click on &amp;quot;ⓧ&amp;quot; in front of the child row #rect14.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;ⓧ #rect14&amp;quot; row in the Style dialog disappears.&lt;br /&gt;
  X. No! -&amp;gt; The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
         --&amp;gt; Shouldn't &amp;quot;#rect14 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted?&lt;br /&gt;
  2. The &amp;quot;class&amp;quot; attribute of #rect14 which had only &amp;quot;red&amp;quot; value is unset and deleted now.&lt;br /&gt;
&lt;br /&gt;
== Double-clicking a Selector Row ==&lt;br /&gt;
&lt;br /&gt;
  1. Double click on any selector (id or class selector) row, say &amp;quot;'+' ⊞ .red&amp;quot; is double clicked. &lt;br /&gt;
     In XML editor, its entry is &amp;quot;.red { fill: red; stroke: blue; }&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. A CSS pane at the bottom of Style Dialog opens up.&lt;br /&gt;
  2. If the selector selected has any CSS properties, those should up in rows like: &lt;br /&gt;
     &amp;quot;ⓧ fill: red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ stroke: blue&amp;quot;&lt;br /&gt;
  3. If click on any row is a single-click, the CSS pane hides.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Modifying a CSS Property from CSS Pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Select the property row, say &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
  3. Being selected, click again on the row &amp;quot;ⓧ fill: red&amp;quot; and cursor appears implying editing mode.&lt;br /&gt;
  4. Modify the text, say the modified text is &amp;quot;fill: yellow&amp;quot; and press Enter.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The updated property row is &amp;quot;ⓧ fill: yellow&amp;quot;.&lt;br /&gt;
  2. In XML editor, its updated entry is &amp;quot;.red { fill: yellow; stroke: blue; }&amp;quot;.&lt;br /&gt;
  3. The changes are reflected in the drawing with the object having class &amp;quot;.red&amp;quot; filled with yellow color.&lt;br /&gt;
  All properties can be changed similarly with valid values after modifying text content.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Adding CSS Property using CSS pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Click on '+' at bottom of CSS pane, an empty row &amp;quot;ⓧ     &amp;quot; appears.&lt;br /&gt;
  3. Select the row and click on it and cursor appears implying editing mode.&lt;br /&gt;
  4. Add a property, say &amp;quot;stroke-width: 5px&amp;quot; and press Enter.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The new property row in CSS pane is &amp;quot;ⓧ stroke-width: 5px&amp;quot;.&lt;br /&gt;
  2. In XML editor, its updated entry is &amp;quot;.red { fill: yellow; stroke: blue; stroke-width: 5px; }&amp;quot;.&lt;br /&gt;
  3. The changes are reflected in the drawing with the objects', having class &amp;quot;.red&amp;quot;, stroke-width set to the entered value.&lt;br /&gt;
  More CSS properties can be added similarly with valid values.&lt;br /&gt;
&lt;br /&gt;
  Status Fail (often results in .red { fill:red; ;})  (note missing property between &amp;quot;; ;&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
== Deleting CSS Property from CSS Pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Select the property row, say &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
  3. The row being selected, click on ⓧ in the row &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;ⓧ fill:red&amp;quot; row in the CSS pane disappears.&lt;br /&gt;
  2. The &amp;quot;.red { fill: red; stroke: blue; }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor is modified to &amp;quot;.red { stroke: &lt;br /&gt;
     blue; }&amp;quot; .&lt;br /&gt;
  3. The fill color of objects associated with &amp;quot;.red&amp;quot; selector is unset and it is black now.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;/div&gt;</summary>
		<author><name>Kamalpreet</name></author>
	</entry>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101706</id>
		<title>Style Editor Tests</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101706"/>
		<updated>2016-08-11T13:35:00Z</updated>

		<summary type="html">&lt;p&gt;Kamalpreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Style Editor Tests=&lt;br /&gt;
&lt;br /&gt;
See [[Style Editor]] for description of dialog.&lt;br /&gt;
&lt;br /&gt;
All tests begin by:&lt;br /&gt;
  1. Opening Inkscape.&lt;br /&gt;
  2. Opening the Style dialog (Object-&amp;gt;Style dialog...)&lt;br /&gt;
  3. Opening the XML Editor dialog (Edit-&amp;gt;XML Editor... or Shift+Ctrl+X).&lt;br /&gt;
  4. Expanding the &amp;lt;style&amp;gt; element content in the XML editor.&lt;br /&gt;
&lt;br /&gt;
== Simple ID Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ #rect10&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple ID selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple ID selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ #rect10&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Deletion of simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. With &amp;quot;'+' #rect10&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Simple Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple Class selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Replace &amp;quot;#rect10&amp;quot; by &amp;quot;.red&amp;quot; in pop entry.&lt;br /&gt;
  5. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ .red&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;.red { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (⊞) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple class selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple class selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ .red&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Removal of class selector value.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. Expand the subtree by clicking on ☒.&lt;br /&gt;
  2. Click on the ⓧ in front of #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The 'class' attribute in &amp;lt;rect id=&amp;quot;rect10&amp;quot;.../&amp;gt; is removed. (Since 'red' was the only entry in the 'class' value, its removal causes the 'class' to be removed.)&lt;br /&gt;
&lt;br /&gt;
  Status: Fail. The ⊞ icon is missing so the subtree cannot be expanded to show the entry for the rectangle.&lt;br /&gt;
&lt;br /&gt;
5. Deletion of simple class selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 4 (or 1).&lt;br /&gt;
  1. With &amp;quot;'+' ⊞ .red&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;.red { ... }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: CRASH.&lt;br /&gt;
&lt;br /&gt;
== Adding Object to Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the line &amp;quot;'+' ⊞ .red&amp;quot; in Style dialog.&lt;br /&gt;
  2. Click on object, say #rect10, to be added to &amp;quot;.red&amp;quot; selector.&lt;br /&gt;
  3. With object selected, click on &amp;quot;+&amp;quot; in the beginning of selected row in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'-' #rect10&amp;quot; with &amp;quot;'+' ⊞ .red&amp;quot; as the parent row.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
  4. The &amp;quot;red&amp;quot; value should not be duplicated in the &amp;quot;class&amp;quot; attribute of any other object with the &amp;quot;class&amp;quot; &amp;quot;red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Removing Object from Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the object row (child row of &amp;quot;'+' ⊞ .red&amp;quot;), say #rect10, to be deleted from &amp;quot;.red&amp;quot; selector. The representation &lt;br /&gt;
     can be related as:&lt;br /&gt;
     &amp;quot;'+' ⊞ .red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ      #rect10&amp;quot;&lt;br /&gt;
  2. Click on &amp;quot;ⓧ&amp;quot; in front of the child row #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;ⓧ #rect10&amp;quot; row in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
  3. The &amp;quot;class&amp;quot; attribute which had only &amp;quot;red&amp;quot; value is unset and deleted now.&lt;br /&gt;
&lt;br /&gt;
== Double-clicking a Selector Row ==&lt;br /&gt;
  1. Double click on any selector (id or class selector) row, say &amp;quot;'+' ⊞ .red&amp;quot; is double clicked. &lt;br /&gt;
     In XML editor, its entry is &amp;quot;.red { fill: red; stroke: blue; }&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. A CSS pane at the bottom of Style Dialog opens up.&lt;br /&gt;
  2. If the selector selected has any CSS properties, those should up in rows like: &lt;br /&gt;
     &amp;quot;ⓧ fill: red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ stroke: blue&amp;quot;&lt;br /&gt;
  3. If click on any row is a single-click, the CSS pane hides.&lt;br /&gt;
&lt;br /&gt;
== Modifying a CSS Property from CSS Pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Select the property row, say &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
  3. Being selected, click again on the row &amp;quot;ⓧ fill: red&amp;quot; and cursor appears implying editing mode.&lt;br /&gt;
  4. Modify the text, say the modified text is &amp;quot;fill: yellow&amp;quot; and press Enter.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The updated property row is &amp;quot;ⓧ fill: yellow&amp;quot;.&lt;br /&gt;
  2. In XML editor, its updated entry is &amp;quot;.red { fill: yellow; stroke: blue; }&amp;quot;.&lt;br /&gt;
  3. The changes are reflected in the drawing with the object having class &amp;quot;.red&amp;quot; filled with yellow color.&lt;br /&gt;
  All properties can be changed similarly with valid values after modifying text content.&lt;br /&gt;
&lt;br /&gt;
== Adding CSS Property using CSS pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Click on '+' at bottom of CSS pane, an empty row &amp;quot;ⓧ     &amp;quot; appears.&lt;br /&gt;
  3. Select the row and click on it and cursor appears implying editing mode.&lt;br /&gt;
  4. Add a property, say &amp;quot;stroke-width: 5px&amp;quot; and press Enter.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The new property row in CSS pane is &amp;quot;ⓧ stroke-width: 5px&amp;quot;.&lt;br /&gt;
  2. In XML editor, its updated entry is &amp;quot;.red { fill: yellow; stroke: blue; stroke-width: 5px; }&amp;quot;.&lt;br /&gt;
  3. The changes are reflected in the drawing with the objects', having class &amp;quot;.red&amp;quot;, stroke-width set to the entered value.&lt;br /&gt;
  More CSS properties can be added similarly with valid values.&lt;br /&gt;
&lt;br /&gt;
== Deleting CSS Property from CSS Pane ==&lt;br /&gt;
  1. Follow steps from &amp;quot;Double-clicking a Selector Row&amp;quot; to open CSS pane.&lt;br /&gt;
  2. Select the property row, say &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
  3. The row being selected, click on ⓧ in the row &amp;quot;ⓧ fill: red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;ⓧ fill:red&amp;quot; row in the CSS pane disappears.&lt;br /&gt;
  2. The &amp;quot;.red { fill: red; stroke: blue; }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor is modified to &amp;quot;.red { stroke: &lt;br /&gt;
     blue; }&amp;quot; .&lt;br /&gt;
  3. The fill color of objects associated with &amp;quot;.red&amp;quot; selector is unset and it is black now.&lt;/div&gt;</summary>
		<author><name>Kamalpreet</name></author>
	</entry>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101701</id>
		<title>Style Editor Tests</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101701"/>
		<updated>2016-08-11T12:34:02Z</updated>

		<summary type="html">&lt;p&gt;Kamalpreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Style Editor Tests=&lt;br /&gt;
&lt;br /&gt;
See [[Style Editor]] for description of dialog.&lt;br /&gt;
&lt;br /&gt;
All tests begin by:&lt;br /&gt;
  1. Opening Inkscape.&lt;br /&gt;
  2. Opening the Style dialog (Object-&amp;gt;Style dialog...)&lt;br /&gt;
  3. Opening the XML Editor dialog (Edit-&amp;gt;XML Editor... or Shift+Ctrl+X).&lt;br /&gt;
  4. Expanding the &amp;lt;style&amp;gt; element content in the XML editor.&lt;br /&gt;
&lt;br /&gt;
== Simple ID Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ #rect10&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple ID selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple ID selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ #rect10&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Deletion of simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. With &amp;quot;'+' #rect10&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Simple Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple Class selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Replace &amp;quot;#rect10&amp;quot; by &amp;quot;.red&amp;quot; in pop entry.&lt;br /&gt;
  5. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ .red&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;.red { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (⊞) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple class selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple class selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ .red&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Removal of class selector value.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. Expand the subtree by clicking on ☒.&lt;br /&gt;
  2. Click on the ⓧ in front of #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The 'class' attribute in &amp;lt;rect id=&amp;quot;rect10&amp;quot;.../&amp;gt; is removed. (Since 'red' was the only entry in the 'class' value, its removal causes the 'class' to be removed.)&lt;br /&gt;
&lt;br /&gt;
  Status: Fail. The ⊞ icon is missing so the subtree cannot be expanded to show the entry for the rectangle.&lt;br /&gt;
&lt;br /&gt;
5. Deletion of simple class selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 4 (or 1).&lt;br /&gt;
  1. With &amp;quot;'+' ⊞ .red&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;.red { ... }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: CRASH.&lt;br /&gt;
&lt;br /&gt;
== Adding Object to Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the line &amp;quot;'+' ⊞ .red&amp;quot; in Style dialog.&lt;br /&gt;
  2. Click on object, say #rect10, to be added to &amp;quot;.red&amp;quot; selector.&lt;br /&gt;
  3. With object selected, click on &amp;quot;+&amp;quot; in the beginning of selected row in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'-' #rect10&amp;quot; with &amp;quot;'+' ⊞ .red&amp;quot; as the parent row.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
  4. The &amp;quot;red&amp;quot; value should not be duplicated in the &amp;quot;class&amp;quot; attribute of any other object with the &amp;quot;class&amp;quot; &amp;quot;red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Removing Object from Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the object row (child row of &amp;quot;'+' ⊞ .red&amp;quot;), say #rect10, to be deleted from &amp;quot;.red&amp;quot; selector. The representation &lt;br /&gt;
     can be related as:&lt;br /&gt;
     &amp;quot;'+' ⊞ .red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ      #rect10&amp;quot;&lt;br /&gt;
  2. Click on &amp;quot;ⓧ&amp;quot; in front of the child row #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;ⓧ #rect10&amp;quot; row in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
  3. The &amp;quot;class&amp;quot; attribute which had only &amp;quot;red&amp;quot; value is unset and deleted now.&lt;br /&gt;
&lt;br /&gt;
== Double-clicking a Selector Row ==&lt;br /&gt;
  1. Double click on any selector (id or class selector) row, say &amp;quot;'+' ⊞ .red&amp;quot; is double clicked. &lt;br /&gt;
     In XML editor, its entry is &amp;quot;.red { fill: red; stroke: blue; }&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. A CSS pane at the bottom of Style Dialog opens up.&lt;br /&gt;
  2. If the selector selected has any CSS properties, those should up in rows like: &lt;br /&gt;
     &amp;quot;ⓧ fill: red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ stroke: blue&amp;quot;&lt;br /&gt;
  3. If click on any row is a single-click, the CSS pane hides.&lt;/div&gt;</summary>
		<author><name>Kamalpreet</name></author>
	</entry>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101696</id>
		<title>Style Editor Tests</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=101696"/>
		<updated>2016-08-11T12:27:03Z</updated>

		<summary type="html">&lt;p&gt;Kamalpreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Style Editor Tests=&lt;br /&gt;
&lt;br /&gt;
See [[Style Editor]] for description of dialog.&lt;br /&gt;
&lt;br /&gt;
All tests begin by:&lt;br /&gt;
  1. Opening Inkscape.&lt;br /&gt;
  2. Opening the Style dialog (Object-&amp;gt;Style dialog...)&lt;br /&gt;
  3. Opening the XML Editor dialog (Edit-&amp;gt;XML Editor... or Shift+Ctrl+X).&lt;br /&gt;
  4. Expanding the &amp;lt;style&amp;gt; element content in the XML editor.&lt;br /&gt;
&lt;br /&gt;
== Simple ID Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ #rect10&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple ID selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple ID selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ #rect10&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Deletion of simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. With &amp;quot;'+' #rect10&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ #rect10&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Simple Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple Class selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Replace &amp;quot;#rect10&amp;quot; by &amp;quot;.red&amp;quot; in pop entry.&lt;br /&gt;
  5. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ⊞ .red&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;.red { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (⊞) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple class selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple class selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ⊞ .red&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Removal of class selector value.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. Expand the subtree by clicking on ☒.&lt;br /&gt;
  2. Click on the ⓧ in front of #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The 'class' attribute in &amp;lt;rect id=&amp;quot;rect10&amp;quot;.../&amp;gt; is removed. (Since 'red' was the only entry in the 'class' value, its removal causes the 'class' to be removed.)&lt;br /&gt;
&lt;br /&gt;
  Status: Fail. The ⊞ icon is missing so the subtree cannot be expanded to show the entry for the rectangle.&lt;br /&gt;
&lt;br /&gt;
5. Deletion of simple class selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 4 (or 1).&lt;br /&gt;
  1. With &amp;quot;'+' ⊞ .red&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ⊞ .red&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;.red { ... }&amp;quot; line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: CRASH.&lt;br /&gt;
&lt;br /&gt;
== Adding Object to Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the line &amp;quot;'+' ⊞ .red&amp;quot; in Style dialog.&lt;br /&gt;
  2. Click on object, say #rect10, to be added to &amp;quot;.red&amp;quot; selector.&lt;br /&gt;
  3. With object selected, click on &amp;quot;+&amp;quot; in the beginning of selected row in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'-' #rect10&amp;quot; with &amp;quot;'+' ⊞ .red&amp;quot; as the parent row.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
  4. The &amp;quot;red&amp;quot; value should not be duplicated in the &amp;quot;class&amp;quot; attribute of any other object with the &amp;quot;class&amp;quot; &amp;quot;red&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Removing Object from Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the object row (child row of &amp;quot;'+' ⊞ .red&amp;quot;), say #rect10, to be deleted from &amp;quot;.red&amp;quot; selector.&lt;br /&gt;
  2. Click on &amp;quot;-&amp;quot; in front of the child row #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;ⓧ #rect10&amp;quot; row in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
  3. The &amp;quot;class&amp;quot; attribute which had only &amp;quot;red&amp;quot; value is unset and deleted now.&lt;br /&gt;
&lt;br /&gt;
== Double-clicking a Selector Row ==&lt;br /&gt;
  1. Double click on any selector (id or class selector) row, say &amp;quot;'+' ⊞ .red&amp;quot; is double clicked. &lt;br /&gt;
     In XML editor, its entry is &amp;quot;.red { fill: red; stroke: blue; }&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. A CSS pane at the bottom of Style Dialog opens up.&lt;br /&gt;
  2. If the selector selected has any CSS properties, those should up in rows like: &lt;br /&gt;
     &amp;quot;ⓧ fill: red&amp;quot;&lt;br /&gt;
     &amp;quot;ⓧ stroke: blue&amp;quot;&lt;/div&gt;</summary>
		<author><name>Kamalpreet</name></author>
	</entry>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=100831</id>
		<title>Style Editor Tests</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=Style_Editor_Tests&amp;diff=100831"/>
		<updated>2016-07-13T17:26:11Z</updated>

		<summary type="html">&lt;p&gt;Kamalpreet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=Style Editor Tests=&lt;br /&gt;
&lt;br /&gt;
All tests begin by:&lt;br /&gt;
  1. Opening Inkscape.&lt;br /&gt;
  2. Opening the Style dialog (Object-&amp;gt;Style dialog...)&lt;br /&gt;
  3. Opening the XML Editor dialog (Edit-&amp;gt;XML Editor... or Shift+Ctrl+X).&lt;br /&gt;
  4. Expanding the &amp;lt;style&amp;gt; element content in the XML editor.&lt;br /&gt;
&lt;br /&gt;
== Simple ID Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ☒ #rect10&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple ID selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ☒ #rect10&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple ID selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ☒ #rect10&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Deletion of simple ID selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. With &amp;quot;'+' #rect10&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ☒ #rect10&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;#rect10 { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
== Simple Class Selector Tests ==&lt;br /&gt;
&lt;br /&gt;
1. Add simple Class selector.&lt;br /&gt;
&lt;br /&gt;
  1. Draw rectangle.&lt;br /&gt;
  2. With rectangle selected, click on '+' at bottom of Style dialog.&lt;br /&gt;
  3. In pop-up &amp;quot;#rect10&amp;quot; should appear.&lt;br /&gt;
  4. Replace &amp;quot;#rect10&amp;quot; by &amp;quot;.red&amp;quot; in pop entry.&lt;br /&gt;
  5. Click on &amp;quot;Add&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'+' ☒ .red&amp;quot;.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;.red { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  Status: Fail: The expand tree icon (☒) is missing. When clicked, the tree should expand and should show &amp;quot;ⓧ #rect10&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. Select simple class selector via selecting object on canvas.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 1.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Select the rectangle on the Inkscape canvas.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The &amp;quot;'+' ☒ .red&amp;quot; line in the Style dialog should be selected (highlighted in blue).&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
3. Select object on canvas via using simple class selector in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 2.&lt;br /&gt;
  1. Click on the canvas outside the rectangle to deselected rectangle.&lt;br /&gt;
  2. Click on &amp;quot;'+' ☒ .red&amp;quot; line in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected result:&lt;br /&gt;
  1. The rectangle object on the canvas is selected.&lt;br /&gt;
&lt;br /&gt;
  Status: Pass&lt;br /&gt;
&lt;br /&gt;
4. Removal of class selector value.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 3.&lt;br /&gt;
  1. Expand the subtree by clicking on ☒.&lt;br /&gt;
  2. Click on the ⓧ in front of #rect10.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The 'class' attribute in &amp;lt;rect id=&amp;quot;rect10&amp;quot;.../&amp;gt; is removed. (Since 'red' was the only entry in the 'class' value, its removal causes the 'class' to be removed.)&lt;br /&gt;
&lt;br /&gt;
  Status: Fail. The ☒ icon is missing so the subtree cannot be expanded to show the entry for the rectangle.&lt;br /&gt;
&lt;br /&gt;
5. Deletion of simple class selector.&lt;br /&gt;
&lt;br /&gt;
  Continue from test 4 (or 1).&lt;br /&gt;
  1. With &amp;quot;'+' ☒ .red&amp;quot; line selected in Style dialog, click on '-' button and bottom of Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. The &amp;quot;'+' ☒ .red&amp;quot; line in the Style dialog disappears.&lt;br /&gt;
  2. The &amp;quot;.red { ... } line in the &amp;lt;style&amp;gt; element in the XML editor should be deleted.&lt;br /&gt;
&lt;br /&gt;
  Status: CRASH.&lt;br /&gt;
&lt;br /&gt;
== Adding Objects to Selector ==&lt;br /&gt;
&lt;br /&gt;
  1. Select the line &amp;quot;'+' ☒ .red&amp;quot; in Style dialog.&lt;br /&gt;
  2. Click on object, say #rect10, to be added to &amp;quot;.red&amp;quot; selector.&lt;br /&gt;
  3. With object selected, click on &amp;quot;+&amp;quot; in the beginning of selected row in Style dialog.&lt;br /&gt;
&lt;br /&gt;
  Expected behavior:&lt;br /&gt;
  1. An entry should be added in the Style dialog showing &amp;quot;'-' #rect10&amp;quot; with &amp;quot;'+' ☒ .red&amp;quot; as the parent row.&lt;br /&gt;
  2. An entry should be added to the &amp;lt;style&amp;gt; element in the XML editor: &amp;quot;#rect10 { ... }.&lt;br /&gt;
  3. A &amp;quot;class&amp;quot; attribute should be added with value &amp;quot;red&amp;quot; to the rectangle with the id of &amp;quot;rect10&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Kamalpreet</name></author>
	</entry>
</feed>