From 2efe74998cb60ad971d2383534670ecc21d971fc Mon Sep 17 00:00:00 2001 From: Muse Date: Tue, 1 Dec 2026 22:50:36 +0700 Subject: [PATCH] Change farm password to 1722 --- README.md | 2 +- manager/public/index.html | 84 ++++++++- manager/server.js | 2 +- scripts/install.sh | 2 +- sync-test/package-lock.json | 342 ++++++++++++++++++++++++++++++++++ sync-test/package.json | 15 ++ sync-test/paste-sync-test.js | 351 +++++++++++++++++++++++++++++++++++ 7 files changed, 790 insertions(+), 8 deletions(-) create mode 100644 sync-test/package-lock.json create mode 100644 sync-test/package.json create mode 100644 sync-test/paste-sync-test.js diff --git a/README.md b/README.md index fd7efa8..e8269b4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ semua 8 browser langsung terhubung otomatis (tanpa login per cell). ## Login: satu password untuk seluruh farm - **Satu login, bukan 8.** Grid dikunci satu password (defaultnya sama - dengan password Neko: `pendol1722`). Setelah login, sesi berlaku + dengan password Neko: `1722`). Setelah login, sesi berlaku 7 hari (cookie `farm_auth`, httpOnly). - **Cell auto-connect.** Manager login sendiri ke tiap instance Neko (`POST /api/login` dengan user `pend`) dan menyisipkan token sesi ke diff --git a/manager/public/index.html b/manager/public/index.html index f4be81e..af4eded 100644 --- a/manager/public/index.html +++ b/manager/public/index.html @@ -76,9 +76,9 @@ - + -

Cara pakai: login sekali dengan password farm — semua browser langsung terhubung otomatis. Tiap cell adalah browser Chromium sendiri (profil, cookie, dan IP terpisah). Settings mengubah User-Agent & proxy, lalu browser restart otomatis. Sinkron: nyalakan tombol di atas, lalu klik/ketik di satu browser — semua browser lain ikut melakukan hal yang sama. Browser yang terakhir kamu sentuh jadi Master (badge kuning).

+

Cara pakai: login sekali dengan password farm — semua browser langsung terhubung otomatis. Tiap cell adalah browser Chromium sendiri (profil, cookie, dan IP terpisah). Settings mengubah User-Agent & proxy, lalu browser restart otomatis. Sinkron: nyalakan tombol di atas, lalu klik/ketik/paste di satu browser — semua browser lain ikut melakukan hal yang sama. Browser yang terakhir kamu sentuh jadi Master (badge kuning).

@@ -367,10 +367,14 @@ function handler(e) { onCellInput(id, e); } - // Mouse + wheel + keyboard: exactly the events the Overlay listens + // Mouse + wheel + keyboard + paste: the events the Overlay listens // to. (The Overlay uses mouse events, not pointer events, so we // mirror mouse events — a PointerEvent would be ignored by it.) - ['mousemove', 'mousedown', 'wheel', 'keydown', 'keyup'].forEach(function (type) { + // Paste is mirrored too: the Overlay reads the pasted text from the + // paste event's clipboardData (see mirrorInput), and a Ctrl+V + // keydown alone never pastes — the Overlay swallows the 'v' key and + // waits for the paste event. + ['mousemove', 'mousedown', 'wheel', 'keydown', 'keyup', 'paste'].forEach(function (type) { input.addEventListener(type, handler, false); }); // mouseup can happen outside the textarea (the Overlay itself @@ -419,7 +423,77 @@ if (!master || !master.inputEl) return; var type = e.type; if (type !== 'mousemove' && type !== 'mousedown' && type !== 'mouseup' && - type !== 'wheel' && type !== 'keydown' && type !== 'keyup') return; + type !== 'wheel' && type !== 'keydown' && type !== 'keyup' && + type !== 'paste') return; + + // Paste: Neko's Overlay reads the pasted text from the paste event's + // clipboardData (client/core/src/overlay.ts: it listens for 'paste' + // on the textarea and calls onPaste(clipboardData.getData('text/plain')), + // which sets the remote clipboard via preparePaste and then sends a + // Ctrl+V keystroke). A mirrored Ctrl+V keydown alone never pastes — + // the Overlay swallows the 'v' key — so the text itself has to be + // carried over: read it once from the master's paste event and + // dispatch an equivalent paste into every follower's textarea, so + // each follower's Overlay processes it exactly like a real paste. + // (The synthetic events have isTrusted=false, so each follower's own + // grid listener ignores them — no feedback loop.) + if (type === 'paste') { + var text = ''; + try { + text = (e.clipboardData && e.clipboardData.getData('text/plain')) || ''; + } catch (err) { text = ''; } + // Empty clipboard (no text, or no clipboard permission): do + // nothing rather than dispatching an empty paste that would make + // followers send preparePaste('') + Ctrl+V to their remotes. + if (!text) return; + Object.keys(cells).forEach(function (fid) { + if (fid === masterId) return; + var f = cells[fid]; + if (!f || !f.inputEl) return; + if (!f._browser || f._browser.status !== 'running') return; + try { + var fwin = f.inputEl.ownerDocument.defaultView; + if (!fwin) return; + var dt = null; + try { + if (typeof fwin.DataTransfer === 'function') { + dt = new fwin.DataTransfer(); + dt.setData('text/plain', text); + } + } catch (err) { dt = null; } + if (!dt) { + // No DataTransfer in this engine: a minimal clipboardData-like + // object. Neko only calls getData('text/plain'). + dt = { + getData: function (t) { return t === 'text/plain' ? text : ''; }, + setData: function () {}, + types: ['text/plain'], + }; + } + var ev = null; + try { + if (typeof fwin.ClipboardEvent === 'function') { + ev = new fwin.ClipboardEvent('paste', { + bubbles: true, cancelable: true, clipboardData: dt, + }); + } + } catch (err) { ev = null; } + if (!ev) ev = new fwin.Event('paste', { bubbles: true, cancelable: true }); + // Make sure the dispatched event actually carries the text even + // when the ClipboardEvent constructor ignored the clipboardData + // init: shadow the prototype getter on the instance. + try { + var got = (ev.clipboardData && ev.clipboardData.getData) + ? ev.clipboardData.getData('text/plain') : null; + if (got !== text) Object.defineProperty(ev, 'clipboardData', { value: dt }); + } catch (err) { /* ignore */ } + f.inputEl.dispatchEvent(ev); + } catch (err) { + // A follower that is not ready must never break the grid. + } + }); + return; + } // Throttle mousemove mirroring (~60fps) so a fast drag does not // flood the followers with synthetic events. Clicks, wheel and keys diff --git a/manager/server.js b/manager/server.js index a620a99..ec0096a 100644 --- a/manager/server.js +++ b/manager/server.js @@ -27,7 +27,7 @@ const CONFIG_PATH = path.join(__dirname, 'config.json'); const GENERATE_SCRIPT = path.join(__dirname, '..', 'scripts', 'generate.js'); // Single password for the whole farm: the grid login AND every Neko // instance's password. Must match FARM_PASSWORD in scripts/install.sh. -const FARM_PASSWORD = process.env.FARM_PASSWORD || 'pendol1722'; +const FARM_PASSWORD = process.env.FARM_PASSWORD || '1722'; const NEKO_LOGIN_USER = 'pend'; const TOKEN_TTL_MS = 55 * 60 * 1000; // Neko tokens are re-fetched every 55 min const SESSION_TTL_MS = 7 * 24 * 60 * 60 * 1000; // farm login lasts 7 days diff --git a/scripts/install.sh b/scripts/install.sh index b9df89e..8f5e4ff 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -10,7 +10,7 @@ set -euo pipefail # ---- settings (change FARM_PASSWORD before first run if you want) ---- FARM_ROOT="/opt/farm" APP_DIR="/opt/browser-farm" -FARM_PASSWORD="pendol1722" +FARM_PASSWORD="1722" NEKO_IMAGE="m1k1o/neko:chromium" VPS_IP="49.128.191.144" # ---------------------------------------------------------------------- diff --git a/sync-test/package-lock.json b/sync-test/package-lock.json new file mode 100644 index 0000000..0da9de2 --- /dev/null +++ b/sync-test/package-lock.json @@ -0,0 +1,342 @@ +{ + "name": "sync-test", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "sync-test", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "jsdom": "^31.0.1" + } + }, + "node_modules/@exodus/bytes": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz", + "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==", + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + }, + "peerDependencies": { + "@noble/hashes": "^1.8.0 || ^2.0.0" + }, + "peerDependenciesMeta": { + "@noble/hashes": { + "optional": true + } + } + }, + "node_modules/bcp-47": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/bcp-47/-/bcp-47-2.1.2.tgz", + "integrity": "sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==", + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/bcp-47-match": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.3.tgz", + "integrity": "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/data-urls": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-8.0.0.tgz", + "integrity": "sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==", + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^17.1.2" + }, + "engines": { + "node": "^22.14.0 || >=24.0.0" + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "license": "MIT" + }, + "node_modules/entities": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz", + "integrity": "sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==", + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.15.1" + }, + "engines": { + "node": "^22.13.0 || >=24.0.0" + } + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "license": "MIT" + }, + "node_modules/jsdom": { + "version": "31.0.1", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.1.tgz", + "integrity": "sha512-CbhJL8ZQg3eKswxSZth4QO9tW0jPIhmR0vtSXQSbKSfWbwIT6hoRc17wdHIVTQ43KI0mdV5iTJr3281IDgVZ5g==", + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.16.0", + "bcp-47": "^2.1.2", + "bcp-47-match": "^2.0.3", + "data-urls": "^8.0.0", + "decimal.js": "^10.6.0", + "html-encoding-sniffer": "^7.0.0", + "is-potential-custom-element-name": "^1.0.1", + "lru-cache": "^11.5.3", + "parse5": "^8.1.0", + "parse5-parser-stream": "^8.1.0", + "saxes": "^6.0.0", + "tough-cookie": "^6.0.2", + "undici": "^8.12.3", + "w3c-xmlserializer": "^6.0.0", + "webidl-conversions": "^8.0.1", + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^17.3.0", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + }, + "peerDependencies": { + "@napi-rs/canvas": "^1.0.13" + }, + "peerDependenciesMeta": { + "@napi-rs/canvas": { + "optional": true + } + } + }, + "node_modules/lru-cache": { + "version": "11.5.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.4.tgz", + "integrity": "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/parse5": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz", + "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==", + "license": "MIT", + "dependencies": { + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5-parser-stream": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-8.1.1.tgz", + "integrity": "sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==", + "license": "MIT", + "dependencies": { + "parse5": "^8.1.1" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/tldts": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.6.4.tgz", + "integrity": "sha512-wp+ZdvQyov404xynNcjbXoJyeGM28W/aCwMmry/rJ+Y0SsObukJYkWwuxWGbNpIjeqMaEbNUtXPNtPPfI5cTFA==", + "license": "MIT", + "dependencies": { + "tldts-core": "^7.6.4" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.6.4.tgz", + "integrity": "sha512-QywQ9lgQyZMuc3NVlqmuxHOhlwirSdvgD/vDLvX8dZYcYgy1cdri5rY/TXDHcF4J3VBSdJLcJNIJI6zGJ7jE+w==", + "license": "MIT" + }, + "node_modules/tough-cookie": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.1.0.tgz", + "integrity": "sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==", + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^7.0.5" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-7.0.0.tgz", + "integrity": "sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": "^22.14.0 || >=24.0.0" + } + }, + "node_modules/undici": { + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.14.0.tgz", + "integrity": "sha512-MqM6wqORYo0jb1WFUwFKZTFWFz6VeBMPj9op5Hq+RvlrQjISQCyLEfx5+/iqOLWC/LL1HliJ5t0NP1BgYpXeVQ==", + "license": "MIT", + "engines": { + "node": ">=22.19.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-6.0.0.tgz", + "integrity": "sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==", + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/webidl-conversions": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", + "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-mimetype": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-url": { + "version": "17.3.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.3.0.tgz", + "integrity": "sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==", + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.16.0", + "tr46": "^7.0.0", + "webidl-conversions": "^8.0.1" + }, + "engines": { + "node": "^22.14.0 || >=24.0.0" + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "license": "MIT" + } + } +} diff --git a/sync-test/package.json b/sync-test/package.json new file mode 100644 index 0000000..4744fd3 --- /dev/null +++ b/sync-test/package.json @@ -0,0 +1,15 @@ +{ + "name": "sync-test", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "jsdom": "^31.0.1" + } +} diff --git a/sync-test/paste-sync-test.js b/sync-test/paste-sync-test.js new file mode 100644 index 0000000..9b559f8 --- /dev/null +++ b/sync-test/paste-sync-test.js @@ -0,0 +1,351 @@ +'use strict'; +// Paste-mirroring functional test for the Browser Farm grid. +// Loads the REAL manager/public/index.html in jsdom, stubs the manager +// API, injects a fake Neko overlay (wrap div holding a and a +// transparent