mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			585 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			585 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="include.js"></script>
 | |
| <script>
 | |
|     asyncTest(async done => {
 | |
|         function testSignal(signal) {
 | |
|             return fetch("./basic.html", { signal })
 | |
|                 .then(() => {
 | |
|                     println("FAIL");
 | |
|                 })
 | |
|                 .catch(error => {
 | |
|                     println(`Aborted: ${signal.aborted}`);
 | |
|                     println(`Reason: "${error}"`);
 | |
|                 });
 | |
|         }
 | |
| 
 | |
|         testSignal(AbortSignal.abort())
 | |
|             .then(() => testSignal(AbortSignal.abort("This is a test")))
 | |
|             .finally(done);
 | |
|     });
 | |
| </script>
 | 
