forked from mirrors/gecko-dev
		
	 dd24dda5fb
			
		
	
	
		dd24dda5fb
		
	
	
	
	
		
			
			Automatic update from web-platform-tests Split jssp wpt tests into single test files Runtimes on linux-rel ranges from 4s to 12s rendering the test flaky on default timeouts. Due to the nature of the tests busy waiting to ensure a sample is captured, breaking JSSP wpt tests into single test files should help. Bug: chromium:1226936 Change-Id: Ib113f85510a4c9b0bcdcdc10c540565a41d300f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3406580 Auto-Submit: Corentin Pescheloche <cpescheloche@fb.com> Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org> Cr-Commit-Position: refs/heads/main@{#962169} -- wpt-commits: 45db93f2d470ba0155eb15ca50ea2fab24f46862 wpt-pr: 32497
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			760 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			760 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| 
 | |
| <head>
 | |
|   <script src="/resources/testharness.js"></script>
 | |
|   <script src="/resources/testharnessreport.js"></script>
 | |
| 
 | |
|   <script src="resources/profile-utils.js"></script>
 | |
| </head>
 | |
| 
 | |
| <body>
 | |
|   <script>
 | |
|     // Methods should use their label as the function/frame name. Source:
 | |
|     // https://www.ecma-international.org/ecma-262/#sec-method-definitions-runtime-semantics-propertydefinitionevaluation
 | |
|     promise_test(async t => {
 | |
|       class SomeClass {
 | |
|         method(sample) {
 | |
|           sample();
 | |
|         }
 | |
|       }
 | |
|       let instance = new SomeClass();
 | |
| 
 | |
|       await ProfileUtils.testFunction(instance.method.bind(instance), {
 | |
|         name: 'method',
 | |
|       });
 | |
|     }, 'class method names are logged correctly');
 | |
|   </script>
 | |
| </body>
 | |
| 
 | |
| </html>
 |