/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Platforms/emscripten/browser_test/index.spec.ts
14 строк
575 B
Hood Chatham
gh-145176 Move Emscripten files into Platforms/emscripten (#145806)
17 мар 2026, 04:39
Не верифицирован
17 мар 2026, 04:39
1b11835
Код
Авторство
О чём код?
import { test, expect } from '@playwright/test'; test('has title', async ({ page }) => { await page.goto('/'); await expect(page).toHaveTitle("Emscripten PyRepl Example"); const xterm = await page.locator('css=#terminal'); await expect(xterm).toHaveText(/Python.*on emscripten.*Type.*for more information/); const xtermInput = await page.getByRole('textbox'); await xtermInput.pressSequentially(`def f():\nprint("hello", "emscripten repl!")\n\n`); await xtermInput.pressSequentially(`f()\n`); await expect(xterm).toHaveText(/hello emscripten repl!/); });