This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CHECK_ERROR(x) do { \ | |
int retval = (x); \ | |
if (retval != OK) { \ | |
cleanup(); \ | |
fprintf(stderr, "%s:%d: error: %s returned %d", __FILE__, __LINE__, #x, retval); \ | |
exit(EXIT_FAILURE); \ | |
} \ | |
} while (true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
case $1 in | |
build) | |
cmake -G Ninja -DCMAKE_C_COMPILER=/usr/bin/clang-12 \ | |
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-12 -DCMAKE_BUILD_VERSION=Debug . \ | |
-B build-clang-12-debug && \ | |
cmake -G Ninja -DCMAKE_C_COMPILER=/usr/bin/clang-12 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("if clicking on the settings button would open the settings.", | |
async () => { | |
const popupWindow = await driver.getWindowHandle(); | |
for (const handle of await driver.getAllWindowHandles()) { | |
if (handle !== popupWindow) { | |
await driver.switchTo().window(handle); | |
await driver.close(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Builder, By} = require("selenium-webdriver"); | |
const firefox = require("selenium-webdriver/firefox"); | |
const path = require("path"); | |
const process = require("process"); | |
const fs = require("fs"); | |
const manifest = require("../manifest.json"); | |
const addonId = manifest.browser_specific_settings.gecko.id; | |
async function getUUID(driver) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Builder, By} = require("selenium-webdriver"); | |
const firefox = require("selenium-webdriver/firefox"); | |
const path = require("path"); | |
const process = require("process"); | |
const fs = require("fs"); | |
const manifest = require("../manifest.json"); | |
const addonId = manifest.browser_specific_settings.gecko.id; | |
async function getUUID(driver) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {Builder, By} = require("selenium-webdriver"); | |
const firefox = require("selenium-webdriver/firefox"); | |
const path = require("path"); | |
const fs = require("fs"); | |
const manifest = require("../manifest.json"); | |
const addonId = manifest.browser_specific_settings.gecko.id; | |
async function getUUID(driver) { | |
const capabilities = await driver.getCapabilities(); |