mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 10:18:41 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			849 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			849 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
add_task(async function() {
 | 
						|
  // Test variations of the "screenshot" argument when a file path
 | 
						|
  // isn't specified.
 | 
						|
  await testFileCreationPositive(
 | 
						|
    [
 | 
						|
      "-screenshot",
 | 
						|
      "http://mochi.test:8888/browser/browser/components/shell/test/headless.html",
 | 
						|
    ],
 | 
						|
    "screenshot.png"
 | 
						|
  );
 | 
						|
  await testFileCreationPositive(
 | 
						|
    [
 | 
						|
      "http://mochi.test:8888/browser/browser/components/shell/test/headless.html",
 | 
						|
      "-screenshot",
 | 
						|
    ],
 | 
						|
    "screenshot.png"
 | 
						|
  );
 | 
						|
  await testFileCreationPositive(
 | 
						|
    [
 | 
						|
      "--screenshot",
 | 
						|
      "http://mochi.test:8888/browser/browser/components/shell/test/headless.html",
 | 
						|
    ],
 | 
						|
    "screenshot.png"
 | 
						|
  );
 | 
						|
  await testFileCreationPositive(
 | 
						|
    [
 | 
						|
      "http://mochi.test:8888/browser/browser/components/shell/test/headless.html",
 | 
						|
      "--screenshot",
 | 
						|
    ],
 | 
						|
    "screenshot.png"
 | 
						|
  );
 | 
						|
});
 |