mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	feat(chromium-tip-of-tree): roll to r1065 (#19239)
Signed-off-by: Max Schmitt <max@schmitt.mx> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
		
							parent
							
								
									e576bd17df
								
							
						
					
					
						commit
						84a0aaaaff
					
				@ -15,9 +15,9 @@
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "chromium-tip-of-tree",
 | 
			
		||||
      "revision": "1063",
 | 
			
		||||
      "revision": "1065",
 | 
			
		||||
      "installByDefault": false,
 | 
			
		||||
      "browserVersion": "110.0.5435.0"
 | 
			
		||||
      "browserVersion": "110.0.5451.0"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "firefox",
 | 
			
		||||
 | 
			
		||||
@ -14,6 +14,7 @@
 | 
			
		||||
 * limitations under the License.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { chromiumVersionLessThan } from '../../config/utils';
 | 
			
		||||
import { contextTest as it, expect } from '../../config/browserTest';
 | 
			
		||||
 | 
			
		||||
it('should work', async function({ page, server }) {
 | 
			
		||||
@ -56,21 +57,23 @@ it('should report stylesheets that have no coverage', async function({ page, ser
 | 
			
		||||
  expect(coverage[0].ranges.length).toBe(0);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
it('should work with media queries', async function({ page, server }) {
 | 
			
		||||
it('should work with media queries', async function({ page, server, browserVersion }) {
 | 
			
		||||
  it.skip(chromiumVersionLessThan(browserVersion, '110.0.5451.0'), 'https://chromium-review.googlesource.com/c/chromium/src/+/4051280');
 | 
			
		||||
  await page.coverage.startCSSCoverage();
 | 
			
		||||
  await page.goto(server.PREFIX + '/csscoverage/media.html');
 | 
			
		||||
  const coverage = await page.coverage.stopCSSCoverage();
 | 
			
		||||
  expect(coverage.length).toBe(1);
 | 
			
		||||
  expect(coverage[0].url).toContain('/csscoverage/media.html');
 | 
			
		||||
  expect(coverage[0].ranges).toEqual([
 | 
			
		||||
    { start: 17, end: 38 }
 | 
			
		||||
    { start: 8, end: 40 }
 | 
			
		||||
  ]);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
it('should work with complicated usecases', async function({ page, server }) {
 | 
			
		||||
it('should work with complicated usecases', async function({ page, server, browserVersion }) {
 | 
			
		||||
  it.skip(chromiumVersionLessThan(browserVersion, '110.0.5451.0'), 'https://chromium-review.googlesource.com/c/chromium/src/+/4051280');
 | 
			
		||||
  await page.coverage.startCSSCoverage();
 | 
			
		||||
  await page.goto(server.PREFIX + '/csscoverage/involved.html');
 | 
			
		||||
  const coverage: any = await page.coverage.stopCSSCoverage();
 | 
			
		||||
  const coverage = await page.coverage.stopCSSCoverage();
 | 
			
		||||
  delete coverage[0].text;
 | 
			
		||||
  delete coverage[0].url;
 | 
			
		||||
  expect(coverage).toEqual(
 | 
			
		||||
@ -82,8 +85,8 @@ it('should work with complicated usecases', async function({ page, server }) {
 | 
			
		||||
              'end': 297
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
              'start': 327,
 | 
			
		||||
              'end': 433
 | 
			
		||||
              'start': 306,
 | 
			
		||||
              'end': 435
 | 
			
		||||
            }
 | 
			
		||||
          ]
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user