Remove logging and test
This commit is contained in:
parent
684159728f
commit
8eda6e582a
|
|
@ -44,7 +44,6 @@ export function GridView<T>(model: GridViewProps<T>) {
|
||||||
const column = model.columns[i];
|
const column = model.columns[i];
|
||||||
offsets[i] = (offsets[i - 1] || 0) + model.columnWidths.get(column)!;
|
offsets[i] = (offsets[i - 1] || 0) + model.columnWidths.get(column)!;
|
||||||
}
|
}
|
||||||
console.log('offsets', offsets, model.columns);
|
|
||||||
return offsets;
|
return offsets;
|
||||||
}
|
}
|
||||||
function setOffsets(offsets: number[]) {
|
function setOffsets(offsets: number[]) {
|
||||||
|
|
@ -54,7 +53,6 @@ export function GridView<T>(model: GridViewProps<T>) {
|
||||||
const column = model.columns[i];
|
const column = model.columns[i];
|
||||||
widths.set(column, width);
|
widths.set(column, width);
|
||||||
}
|
}
|
||||||
console.log('setOffsets', offsets);
|
|
||||||
model.setColumnWidths(widths);
|
model.setColumnWidths(widths);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ import { kTargetClosedErrorMessage } from '../config/errors';
|
||||||
import { browserTest as it, expect } from '../config/browserTest';
|
import { browserTest as it, expect } from '../config/browserTest';
|
||||||
import { attachFrame, verifyViewport } from '../config/utils';
|
import { attachFrame, verifyViewport } from '../config/utils';
|
||||||
import type { Page } from '@playwright/test';
|
import type { Page } from '@playwright/test';
|
||||||
import { request } from '@playwright/test';
|
|
||||||
|
|
||||||
it('should create new context @smoke', async function({ browser }) {
|
it('should create new context @smoke', async function({ browser }) {
|
||||||
expect(browser.contexts().length).toBe(0);
|
expect(browser.contexts().length).toBe(0);
|
||||||
|
|
@ -32,22 +31,6 @@ it('should create new context @smoke', async function({ browser }) {
|
||||||
expect(browser).toBe(context.browser());
|
expect(browser).toBe(context.browser());
|
||||||
});
|
});
|
||||||
|
|
||||||
it('log two contexts', async function({ browser }) {
|
|
||||||
const context1 = await browser.newContext();
|
|
||||||
const context2 = await browser.newContext();
|
|
||||||
const api1 = await request.newContext();
|
|
||||||
const api2 = await request.newContext();
|
|
||||||
const page1 = await context1.newPage();
|
|
||||||
const page2 = await context2.newPage();
|
|
||||||
await page1.evaluate(() => { window.open('about:blank'); });
|
|
||||||
const promises = [];
|
|
||||||
promises.push(page1.goto('https://playwright.dev/'));
|
|
||||||
promises.push(page2.goto('https://theverge.com/'));
|
|
||||||
promises.push(api1.get('https://playwright.dev/'));
|
|
||||||
promises.push(api2.get('https://theverge.com/'));
|
|
||||||
await Promise.all(promises);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should be able to click across browser contexts', async function({ browser }) {
|
it('should be able to click across browser contexts', async function({ browser }) {
|
||||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29096' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29096' });
|
||||||
expect(browser.contexts().length).toBe(0);
|
expect(browser.contexts().length).toBe(0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue