Karl Seguin
6e58b98b3d
Startup local HTTP server for testing
...
Change loader tests to use local HTTP server.
Add missing test scripts (i.e. storage) to unittest runs.
2025-02-09 11:04:21 +08:00
Karl Seguin
62805cdf1d
add license to file
2025-02-09 11:04:21 +08:00
Karl Seguin
4229b1d2a4
Report memory leaks when using std.testing.allocator
...
Fix leaks in storage bottle
2025-02-09 11:04:21 +08:00
Karl Seguin
2c4661a250
Add a new unittest build step
...
Preserves all existing behavior (i.e. make test and zig build test are not
changed in any way).
The new 'unittest' only runs unit tests and is fast to build. It takes ~1.7 to
build unittest, vs ~11.09 to build test. This is really the main goal, and
hopefully any unit test which are (a) fast and (b) don't impact build times
will be run here.
The test runner is based on:
https://gist.github.com/karlseguin/c6bea5b35e4e8d26af6f81c22cb5d76b
It allow filtering, i.e. `make unittest F="parse query dup"`.
'unittest' does memory leak detection when tests use std.testing.allocator.
Fixed a memory leak in url/query which was detected/reported with by the new
'unittest'.
In order to avoid having 3 src/test_xyx.zig files, I merged the existing
test_runner.zig and run_tests.zig into a single main_tests.zig. (this change
is superfluous, but I thought it was cleaner this way. Happy to revert this).
2025-02-09 11:04:21 +08:00
Pierre Tachoire
0c1a486ed9
Merge pull request #411 from karlseguin/reader_tweak
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
Minor Reader tweaks
2025-02-08 11:33:49 +01:00
Karl Seguin
688cb55c2b
Minor Reader tweaks
...
1- Remove `parser.trim`, it was only being used in 1 place. All other places
are using `std.mem.trim(u8, X, &std.ascii.whitespace)`, so i updated MIME to
use this as well
2- Use slightly more meaningful field name, i => pos, s = data
3- Leverage std.mem.indexOfScalarPos which can be more efficient for longer
inputs (since it leverages SIMD)
2025-02-08 15:57:32 +08:00
Francis Bouvier
1594f148f8
Merge pull request #399 from karlseguin/generate
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
Tweak generate.Tuple and generate.Union
2025-02-06 08:53:52 +01:00
Karl Seguin
fafd8c4af1
Improve format and re-add docstrings
...
Implements RP suggestions.
2025-02-06 09:57:04 +08:00
Karl Seguin
3d66758507
zig fmt
2025-02-01 15:38:08 +08:00
Karl Seguin
fc0ec860b0
Tweak generate.Tuple and generate.Union
...
Leverage comptime fields to give generated Tuple a default value, allowing
TupleT and Tuple to be merged.
Only call generate.Tuple on the final output. This eliminates redundant
deduplication, and results in a simpler API (nested types just need to expose
a natural Zig tuple).
generate.Union leverages the new Tuple and removes unused features.
2025-02-01 14:53:00 +08:00
Pierre Tachoire
00d332cd16
Merge pull request #396 from karlseguin/xmlserializer
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
nightly build / build-linux-x86_64 (push) Has been cancelled
nightly build / build-macos-aarch64 (push) Has been cancelled
Add HTML encoding to text node and HTML attribute values
2025-01-31 12:22:52 +01:00
Pierre Tachoire
4c8c0f8738
Merge pull request #394 from lightpanda-io/xmlserializer
...
implement XMLSerializer
2025-01-31 09:09:47 +01:00
Karl Seguin
54978132bb
Add HTML encoding to text node and HTML attribute values
2025-01-31 16:01:32 +08:00
Pierre Tachoire
018abe0188
dom: implement outerHTML
2025-01-30 16:09:47 +01:00
Pierre Tachoire
b186497fb0
implement XMLSerializer
2025-01-30 16:09:47 +01:00
Pierre Tachoire
27f9963ccb
Merge pull request #391 from lightpanda-io/cdp-ctx-sessionid
...
wpt / web platform tests (push) Waiting to run
wpt / perf-fmt (push) Blocked by required conditions
zig-test / zig build dev (push) Waiting to run
zig-test / zig build release (push) Waiting to run
zig-test / zig test (push) Waiting to run
zig-test / perf-fmt (push) Blocked by required conditions
zig-test / demo-puppeteer (push) Blocked by required conditions
cdp: use an enum for SessionID
2025-01-30 14:02:47 +01:00
Pierre Tachoire
a4e3f03bf5
Merge pull request #393 from karlseguin/submodules_over_https
...
Use https:// instead of git@ for submodules
2025-01-30 14:01:43 +01:00
Pierre Tachoire
27a6be4ce0
Merge pull request #392 from karlseguin/readme_typo
...
Fix small install typo in readme
2025-01-30 08:59:39 +01:00
Karl Seguin
76a2520e56
Use https:// instead of git@ for submodules
...
Allows easily building the project, following the steps in readme, without
a github account or having some special git configuration.
2025-01-30 11:56:37 +08:00
Karl Seguin
0a472681af
Fix small install typo in readme
2025-01-30 11:50:12 +08:00
Pierre Tachoire
6d530691f3
cdp: use an enum for SessionID
2025-01-29 18:38:05 +01:00
Pierre Tachoire
a74c9e8481
Merge pull request #389 from lightpanda-io/cdp-empty-params
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
chromedp: msg missing params or result
2025-01-28 17:11:03 +01:00
Pierre Tachoire
8aac26a331
cdp: check parameter's type on sendEvent
...
Disallow void type.
2025-01-28 16:01:47 +01:00
Pierre Tachoire
fc59a0f6ab
cdp: send empty param instead of void
...
Sending void parameters generated unmarshal errors with chromedp client.
Empty struct is required.
2025-01-28 15:46:13 +01:00
Pierre Tachoire
3fb16774b7
Merge pull request #356 from lightpanda-io/location
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
dom: first draft for location
2025-01-27 13:16:05 +01:00
Pierre Tachoire
7b35bb4c0f
dom: improve location impl
2025-01-27 12:33:06 +01:00
Pierre Tachoire
318e2bd1c6
dom: expose document.location
2025-01-27 12:33:05 +01:00
Pierre Tachoire
09ba4bcf43
upgrade libdom
2025-01-27 12:33:04 +01:00
Pierre Tachoire
0c89fa7b1e
Merge pull request #383 from lightpanda-io/katie-lpd-patch-1
...
Update README.md
2025-01-27 10:26:42 +01:00
katie-lpd
7eedb3320d
Update README.md
2025-01-27 09:59:30 +01:00
Pierre Tachoire
cfac75ea49
Merge pull request #380 from eltociear/patch-1
...
docs: update README.md
2025-01-26 20:59:27 +01:00
Ikko Eltociear Ashimine
f00a6c396f
docs: update README.md
...
dependancies -> dependencies
dependancy -> dependency
2025-01-27 03:20:00 +09:00
Pierre Tachoire
e74a9711ca
Merge pull request #378 from spidy0x0/patch-1
...
fix typo
2025-01-25 10:34:41 +01:00
Pierre Tachoire
636d3cdf90
Merge pull request #377 from arilotter/patch-1
...
fix typo in readme
2025-01-25 10:34:16 +01:00
spidy0x0
71966affa1
fix typo
2025-01-24 19:47:12 +00:00
Ari Lotter
bf4dc195ec
fix typo in readme
2025-01-24 12:53:19 -05:00
Pierre Tachoire
dccca17e09
Merge pull request #376 from lightpanda-io/katie-lpd-patch-1
...
Update README.md
2025-01-24 12:03:09 +01:00
Pierre Tachoire
5381a4354c
add badges
2025-01-24 12:02:42 +01:00
katie-lpd
c70425fbf7
Update README.md
2025-01-24 11:53:05 +01:00
Pierre Tachoire
341f5725a4
netsurf: implement location setter/getter
2025-01-23 15:22:03 +01:00
Pierre Tachoire
d7069df80d
dom: first draft for location
2025-01-23 11:51:05 +01:00
Pierre Tachoire
579714a60b
Merge pull request #374 from lightpanda-io/reuseport-unixsocket
...
wpt / web platform tests (push) Has been cancelled
zig-test / zig build dev (push) Has been cancelled
zig-test / zig build release (push) Has been cancelled
zig-test / zig test (push) Has been cancelled
wpt / perf-fmt (push) Has been cancelled
zig-test / perf-fmt (push) Has been cancelled
zig-test / demo-puppeteer (push) Has been cancelled
server: REUSEPORT is not allowed on unix socket
2025-01-22 16:23:58 +01:00
Pierre Tachoire
bbdf63635a
server: REUSEPORT is not allowed on unix socket
...
see 5b0af621c3
2025-01-22 16:08:22 +01:00
Pierre Tachoire
482ed8d958
Merge pull request #370 from lightpanda-io/kernel-version
...
upgrade vendor/zig-js-runtime
2025-01-22 13:58:22 +01:00
Pierre Tachoire
673e16878d
ci: run tests on vendor changes
2025-01-22 13:48:52 +01:00
Pierre Tachoire
e11ceab029
upgrade vendor/zig-js-runtime
2025-01-22 13:46:54 +01:00
Pierre Tachoire
7fe719f43c
Merge pull request #361 from lightpanda-io/docker-updage-zig-v8
...
docker: update zig v8
2025-01-17 12:36:53 +01:00
Pierre Tachoire
3fd3ac1de1
docker: update zig v8
2025-01-17 12:30:28 +01:00
Pierre Tachoire
0e90a675af
Merge pull request #357 from katie-lpd/patch-2
...
Update README.md
2025-01-16 14:09:53 +01:00
katie-lpd
ee861c1f91
Update README.md
2025-01-16 14:06:00 +01:00