1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/tests
Divy Srivastava 0cb00a6e89
BREAKING(webgpu/unstable): move width and height options to UnsafeWindowSurface constructor (#24200)
Fixes https://github.com/denoland/deno/issues/23508

`width` and `height` are required to configure the wgpu surface because
Deno is headless and depends on user to create a window. The options
were non-standard extension of `GPUCanvasConfiguration#configure`.

This PR adds a required options parameter with the `width` and `height`
options to `Deno.UnsafeWindowSurface` constructor.

```typescript
// Old, non-standard extension of GPUCanvasConfiguration
const surface = new Deno.UnsafeWindowSurface("x11", displayHandle, windowHandle);

const context  = surface.getContext();
context.configure({ width: 600, height: 800, /* ... */ });
```

```typescript
// New
const surface = new Deno.UnsafeWindowSurface({
  system: "x11",
  windowHandle,
  displayHandle,
  width: 600,
  height: 800,
});

const context  = surface.getContext();
context.configure({ /* ... */ });
```
2024-09-22 09:10:54 +05:30
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi feat: suggest deno install --entrypoint instead of deno cache (#25228) 2024-09-18 19:55:50 +00:00
integration refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
napi feat: warn when using --allow-run with no allow list (#25215) 2024-09-16 23:08:02 +00:00
node_compat chore: cleanup remaining internals.future code (#25624) 2024-09-16 09:28:35 +10:00
registry fix(node): Include "node" condition during CJS re-export analysis (#25785) 2024-09-21 16:10:38 -07:00
specs fix(node): Include "node" condition during CJS re-export analysis (#25785) 2024-09-21 16:10:38 -07:00
testdata refactor(tests): migrate npm itests to specs (#25764) 2024-09-20 22:38:32 +02:00
unit BREAKING(webgpu/unstable): move width and height options to UnsafeWindowSurface constructor (#24200) 2024-09-22 09:10:54 +05:30
unit_node fix(ext/node): support x509 certificates in createPublicKey (#25731) 2024-09-19 19:12:23 +05:30
util chore: update std submodule (#25595) 2024-09-12 22:32:09 +10:00
wpt fix(ext/crypto): ensure EC public keys are exported uncompressed (#25766) 2024-09-20 20:59:05 +05:30
Cargo.toml feat: improve lockfile v4 to store normalized version constraints and be more terse (#25247) 2024-08-28 14:17:47 -04:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests