forked from mirrors/gecko-dev
		
	Bug 914985. Adjust browser_tabopen_reflows test to deal with a shorter stack to the reflow and log more information when it fails. r=ttaubert
This commit is contained in:
		
							parent
							
								
									9714f6a991
								
							
						
					
					
						commit
						183898489c
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -38,8 +38,7 @@ const EXPECTED_REFLOWS = [ | |||
|     "TabItem__reconnect@chrome://browser/content/tabview.js|" + | ||||
|     "TabItem@chrome://browser/content/tabview.js|" + | ||||
|     "TabItems_link@chrome://browser/content/tabview.js|" + | ||||
|     "@chrome://browser/content/tabview.js|" + | ||||
|     "addTab@chrome://browser/content/tabbrowser.xml|", | ||||
|     "@chrome://browser/content/tabview.js|", | ||||
| 
 | ||||
|   // SessionStore.getWindowDimensions()
 | ||||
|   "ssi_getWindowDimension@resource:///modules/sessionstore/SessionStore.jsm|" + | ||||
|  | @ -88,6 +87,7 @@ let observer = { | |||
|     let path = (new Error().stack).split("\n").slice(1).map(line => { | ||||
|       return line.replace(/:\d+$/, ""); | ||||
|     }).join("|"); | ||||
|     let pathWithLineNumbers = (new Error().stack).split("\n").slice(1).join("|"); | ||||
| 
 | ||||
|     // Stack trace is empty. Reflow was triggered by native code.
 | ||||
|     if (path === "") { | ||||
|  | @ -102,7 +102,7 @@ let observer = { | |||
|       } | ||||
|     } | ||||
| 
 | ||||
|     ok(false, "unexpected uninterruptible reflow '" + path + "'"); | ||||
|     ok(false, "unexpected uninterruptible reflow '" + pathWithLineNumbers + "'"); | ||||
|   }, | ||||
| 
 | ||||
|   reflowInterruptible: function (start, end) { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Boris Zbarsky
						Boris Zbarsky