reftests: Add test for missing-image handling
Add a test that ensures that missing images get the icon-effect properly applied.
This commit is contained in:
		| @ -259,6 +259,9 @@ testdata = \ | ||||
| 	gtk-icontheme-sizing.css \ | ||||
| 	gtk-icontheme-sizing.ref.ui \ | ||||
| 	gtk-icontheme-sizing.ui \ | ||||
| 	icon-effect-missing.css \ | ||||
| 	icon-effect-missing.ref.ui \ | ||||
| 	icon-effect-missing.ui \ | ||||
| 	icon-shadow-no-transform.css \ | ||||
| 	icon-shadow-no-transform.ref.ui \ | ||||
| 	icon-shadow-no-transform.ui \ | ||||
|  | ||||
							
								
								
									
										11
									
								
								testsuite/reftests/icon-effect-missing.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								testsuite/reftests/icon-effect-missing.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| * { | ||||
|   -gtk-icon-effect: none; | ||||
| } | ||||
|  | ||||
| :nth-child(2) { | ||||
|   -gtk-icon-effect: dim; | ||||
| } | ||||
|  | ||||
| :nth-child(3) { | ||||
|   -gtk-icon-effect: highlight; | ||||
| } | ||||
							
								
								
									
										51
									
								
								testsuite/reftests/icon-effect-missing.ref.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								testsuite/reftests/icon-effect-missing.ref.ui
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,51 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!-- Generated with glade 3.19.0 --> | ||||
| <interface> | ||||
|   <requires lib="gtk+" version="3.16"/> | ||||
|   <object class="GtkWindow" id="window1"> | ||||
|     <property name="can_focus">False</property> | ||||
|     <property name="type">popup</property> | ||||
|     <child> | ||||
|       <object class="GtkBox" id="box1"> | ||||
|         <property name="visible">True</property> | ||||
|         <property name="can_focus">False</property> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image1"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">image-missing</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">0</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image2"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">image-missing</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">1</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image3"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">image-missing</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">2</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|       </object> | ||||
|     </child> | ||||
|   </object> | ||||
| </interface> | ||||
							
								
								
									
										51
									
								
								testsuite/reftests/icon-effect-missing.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								testsuite/reftests/icon-effect-missing.ui
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,51 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!-- Generated with glade 3.19.0 --> | ||||
| <interface> | ||||
|   <requires lib="gtk+" version="3.16"/> | ||||
|   <object class="GtkWindow" id="window1"> | ||||
|     <property name="can_focus">False</property> | ||||
|     <property name="type">popup</property> | ||||
|     <child> | ||||
|       <object class="GtkBox" id="box1"> | ||||
|         <property name="visible">True</property> | ||||
|         <property name="can_focus">False</property> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image1"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">deine-mudda-gibs-hier-nich</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">0</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image2"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">deine-mudda-gibs-hier-nich</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">1</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|         <child> | ||||
|           <object class="GtkImage" id="image3"> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">False</property> | ||||
|             <property name="icon_name">deine-mudda-gibs-hier-nich</property> | ||||
|           </object> | ||||
|           <packing> | ||||
|             <property name="expand">False</property> | ||||
|             <property name="fill">True</property> | ||||
|             <property name="position">2</property> | ||||
|           </packing> | ||||
|         </child> | ||||
|       </object> | ||||
|     </child> | ||||
|   </object> | ||||
| </interface> | ||||
		Reference in New Issue
	
	Block a user
	 Benjamin Otte
					Benjamin Otte