You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/README.md
+3-75Lines changed: 3 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,79 +49,7 @@ These pagesets are used by:
49
49
50
50
To run demo scripts that use these pagesets, see the [scripts/README.md](../scripts/README.md).
51
51
52
-
## Browser Testing
52
+
## Browser Demo (Vite)
53
53
54
-
### ⚠️ Important Note
55
-
56
-
AACProcessors is built with TypeScript and outputs CommonJS modules. To use it in a browser, you **must use a bundler** (Vite, Webpack, Rollup, etc.). The browser test page below only validates the library structure - it cannot run actual processors without a bundler.
57
-
58
-
### Browser Test Page
59
-
60
-
A dedicated browser test page is available for validating the library structure:
61
-
62
-
**Start the test server:**
63
-
```bash
64
-
node examples/browser-test-server.js
65
-
```
66
-
67
-
**Open in your browser:**
68
-
```
69
-
http://localhost:8080/examples/browser-test.html
70
-
```
71
-
72
-
**What it tests:**
73
-
- ✅ Browser build files exist and are accessible
74
-
- ✅ Type definitions are present
75
-
- ✅ Processor exports are available
76
-
- ❌ **Does NOT run actual processors** (requires bundler)
77
-
78
-
### What Gets Tested
79
-
80
-
The browser test page (`browser-test.html`) verifies:
81
-
82
-
1.**Module Loading** - Can the browser load the ES modules?
83
-
2.**Factory Functions** - Do `getProcessor()` and `getSupportedExtensions()` work?
84
-
3.**Processor Instantiation** - Can processors be created?
85
-
4.**File Loading** - Can files be loaded from `<input type="file">`?
86
-
5.**Buffer Handling** - Do ArrayBuffers/Uint8Arrays work correctly?
87
-
6.**Tree Structure** - Can AACTree be created from files?
88
-
7.**Text Extraction** - Can texts be extracted from files?
89
-
90
-
### Supported File Types in Browser
91
-
92
-
The browser test page supports all browser-compatible processors:
0 commit comments