mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 19:58:40 +00:00
Remove trailing commas for IE 9 compatibility
Summary: IE 9 doesn't like trailing commas. When we introduced eslint, we added a bunch of trailing commas, which makes IE 9 sad. Test Plan: - `make lint` - Visit http://localhost:7936/ using IE 9 on browserstack. - See that the math loads, and there are no errors in the F12 developer tools. @kevinb
This commit is contained in:
@@ -25,52 +25,52 @@ var opts = require("nomnom")
|
||||
.option("browser", {
|
||||
abbr: "b",
|
||||
"default": "firefox",
|
||||
help: "Name of the browser to use",
|
||||
help: "Name of the browser to use"
|
||||
})
|
||||
.option("container", {
|
||||
abbr: "c",
|
||||
type: "string",
|
||||
help: "Name or ID of a running docker container to contact",
|
||||
help: "Name or ID of a running docker container to contact"
|
||||
})
|
||||
.option("seleniumURL", {
|
||||
full: "selenium-url",
|
||||
help: "Full URL of the Selenium web driver",
|
||||
help: "Full URL of the Selenium web driver"
|
||||
})
|
||||
.option("seleniumIP", {
|
||||
full: "selenium-ip",
|
||||
help: "IP address of the Selenium web driver",
|
||||
help: "IP address of the Selenium web driver"
|
||||
})
|
||||
.option("seleniumPort", {
|
||||
full: "selenium-port",
|
||||
"default": 4444,
|
||||
help: "Port number of the Selenium web driver",
|
||||
help: "Port number of the Selenium web driver"
|
||||
})
|
||||
.option("katexURL", {
|
||||
full: "katex-url",
|
||||
help: "Full URL of the KaTeX development server",
|
||||
help: "Full URL of the KaTeX development server"
|
||||
})
|
||||
.option("katexIP", {
|
||||
full: "katex-ip",
|
||||
help: "Full URL of the KaTeX development server",
|
||||
help: "Full URL of the KaTeX development server"
|
||||
})
|
||||
.option("katexPort", {
|
||||
full: "katex-port",
|
||||
help: "Port number of the KaTeX development server",
|
||||
help: "Port number of the KaTeX development server"
|
||||
})
|
||||
.option("include", {
|
||||
abbr: "i",
|
||||
help: "Comma-separated list of test cases to process",
|
||||
help: "Comma-separated list of test cases to process"
|
||||
})
|
||||
.option("exclude", {
|
||||
abbr: "x",
|
||||
help: "Comma-separated list of test cases to exclude",
|
||||
help: "Comma-separated list of test cases to exclude"
|
||||
})
|
||||
.option("verify", {
|
||||
flag: true,
|
||||
help: "Check whether screenshot matches current file content",
|
||||
help: "Check whether screenshot matches current file content"
|
||||
})
|
||||
.option("wait", {
|
||||
help: "Wait this many seconds between page load and screenshot",
|
||||
help: "Wait this many seconds between page load and screenshot"
|
||||
})
|
||||
.parse();
|
||||
|
||||
@@ -208,7 +208,7 @@ function tryConnect() {
|
||||
}
|
||||
var sock = net.connect({
|
||||
host: seleniumIP,
|
||||
port: +seleniumPort,
|
||||
port: +seleniumPort
|
||||
});
|
||||
sock.on("connect", function() {
|
||||
sock.end();
|
||||
@@ -278,7 +278,7 @@ function imageDimensions(img) {
|
||||
return {
|
||||
buf: buf,
|
||||
width: buf.readUInt32BE(16),
|
||||
height: buf.readUInt32BE(20),
|
||||
height: buf.readUInt32BE(20)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ function takeScreenshot(key) {
|
||||
}
|
||||
}
|
||||
var opt = new jspngopt.Optimizer({
|
||||
pako: pako,
|
||||
pako: pako
|
||||
});
|
||||
var buf = opt.bufferSync(img.buf);
|
||||
if (loadExpected) {
|
||||
|
Reference in New Issue
Block a user