reftest: Add reftest for scaled image borders - fails on GDK_SCALE=2
This commit is contained in:
		
							
								
								
									
										30
									
								
								testsuite/reftests/border-image-url-scaled.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								testsuite/reftests/border-image-url-scaled.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,30 @@ | ||||
| @import "reset-to-defaults.css"; | ||||
|  | ||||
| .button-image { | ||||
|     border-image: -gtk-scaled(url("border-rgb.png"),url("border-rgb@2.png")) 3 stretch; | ||||
|  | ||||
|  | ||||
|   border-style: groove; | ||||
|   border-width: 3px 3px 3px 3px; | ||||
| } | ||||
|  | ||||
| .button-not-image { | ||||
|   border-color: #ff0000; | ||||
|  | ||||
|   border-style: solid; | ||||
|   border-width: 1px 1px 1px 1px; | ||||
| } | ||||
|  | ||||
| .button-not-image2 { | ||||
|   border-color: #00ff00; | ||||
|  | ||||
|   border-style: solid; | ||||
|   border-width: 1px 1px 1px 1px; | ||||
| } | ||||
|  | ||||
| .button-not-image3 { | ||||
|   border-color: #0000ff; | ||||
|  | ||||
|   border-style: solid; | ||||
|   border-width: 1px 1px 1px 1px; | ||||
| } | ||||
							
								
								
									
										48
									
								
								testsuite/reftests/border-image-url-scaled.ref.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								testsuite/reftests/border-image-url-scaled.ref.ui
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,48 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <interface> | ||||
|   <!-- interface-requires gtk+ 3.0 --> | ||||
|   <object class="GtkWindow" id="window1"> | ||||
|     <property name="can_focus">False</property> | ||||
|     <property name="type">popup</property> | ||||
|     <child> | ||||
|       <object class="GtkButton" id="button1"> | ||||
|         <property name="name">reference</property> | ||||
|         <property name="visible">True</property> | ||||
|         <property name="can_focus">True</property> | ||||
|         <property name="has_focus">True</property> | ||||
|         <property name="receives_default">True</property> | ||||
|         <property name="use_action_appearance">False</property> | ||||
|         <style> | ||||
|           <class name="button-not-image"/> | ||||
|         </style> | ||||
|         <child> | ||||
|           <object class="GtkButton" id="button2"> | ||||
|             <property name="name">reference</property> | ||||
|             <property name="visible">True</property> | ||||
|             <property name="can_focus">True</property> | ||||
|             <property name="has_focus">True</property> | ||||
|             <property name="receives_default">True</property> | ||||
|             <property name="use_action_appearance">False</property> | ||||
|             <style> | ||||
|               <class name="button-not-image2"/> | ||||
|             </style> | ||||
|             <child> | ||||
|               <object class="GtkButton" id="button3"> | ||||
|                 <property name="name">reference</property> | ||||
|                 <property name="label" translatable="yes">Hello World</property> | ||||
|                 <property name="visible">True</property> | ||||
|                 <property name="can_focus">True</property> | ||||
|                 <property name="has_focus">True</property> | ||||
|                 <property name="receives_default">True</property> | ||||
|                 <property name="use_action_appearance">False</property> | ||||
|                 <style> | ||||
|                   <class name="button-not-image3"/> | ||||
|                 </style> | ||||
|               </object> | ||||
|             </child> | ||||
|           </object> | ||||
|         </child> | ||||
|       </object> | ||||
|     </child> | ||||
|   </object> | ||||
| </interface> | ||||
							
								
								
									
										22
									
								
								testsuite/reftests/border-image-url-scaled.ui
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								testsuite/reftests/border-image-url-scaled.ui
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <interface> | ||||
|   <!-- interface-requires gtk+ 3.0 --> | ||||
|   <object class="GtkWindow" id="window1"> | ||||
|     <property name="can_focus">False</property> | ||||
|     <property name="type">popup</property> | ||||
|     <child> | ||||
|       <object class="GtkButton" id="button1"> | ||||
|         <property name="name">reference</property> | ||||
|         <property name="label" translatable="yes">Hello World</property> | ||||
|         <property name="visible">True</property> | ||||
|         <property name="can_focus">True</property> | ||||
|         <property name="has_focus">True</property> | ||||
|         <property name="receives_default">True</property> | ||||
|         <property name="use_action_appearance">False</property> | ||||
|         <style> | ||||
|           <class name="button-image"/> | ||||
|         </style> | ||||
|       </object> | ||||
|     </child> | ||||
|   </object> | ||||
| </interface> | ||||
							
								
								
									
										
											BIN
										
									
								
								testsuite/reftests/border-rgb.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								testsuite/reftests/border-rgb.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 218 B | 
							
								
								
									
										
											BIN
										
									
								
								testsuite/reftests/border-rgb@2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								testsuite/reftests/border-rgb@2.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 228 B | 
		Reference in New Issue
	
	Block a user
	 Alexander Larsson
					Alexander Larsson