Format code in some comments

main
Isaiah Odhner 2022-01-18 19:40:16 -05:00
parent 27d81db92b
commit 955df74aec
2 changed files with 19 additions and 17 deletions

View File

@ -126,8 +126,8 @@ context('tool tests', () => {
}); });
}; };
// const gesture = (points)=> { // const gesture = (points) => {
// const options = {secondary: false, shift: false}; // const options = { secondary: false, shift: false };
// // @TODO: while loop // // @TODO: while loop
// trigger("pointerenter", points[0].x, points[0].y, options); // trigger("pointerenter", points[0].x, points[0].y, options);
// trigger("pointerdown", points[0].x, points[0].y, options); // trigger("pointerdown", points[0].x, points[0].y, options);
@ -141,15 +141,15 @@ context('tool tests', () => {
// it('brush tool', () => { // it('brush tool', () => {
// cy.get(".tool[title='Brush']").click(); // cy.get(".tool[title='Brush']").click();
// // gesture([{x: 50, y: 50}, {x: 100, y: 100}]); // // gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
// cy.get(".swatch:nth-child(21)").rightclick(); // cy.get(".swatch:nth-child(21)").rightclick();
// cy.window().then({timeout: 8000}, async (win)=> { // cy.window().then({ timeout: 8000 }, async (win) => {
// for (let secondary=0; secondary<=1; secondary++) { // for (let secondary = 0; secondary <= 1; secondary++) {
// for (let b=0; b<12; b++) { // for (let b = 0; b < 12; b++) {
// win.$(`.chooser > :nth-child(${b+1})`).click(); // win.$(`.chooser > :nth-child(${b + 1})`).click();
// const start = {x: 0.05 + b*0.05, y: 0.1 + 0.1*secondary}; // const start = { x: 0.05 + b * 0.05, y: 0.1 + 0.1 * secondary };
// const end = {x: start.x + 0.04, y: start.y + 0.04}; // const end = { x: start.x + 0.04, y: start.y + 0.04 };
// await simulateGesture(win, {shift: false, secondary: !!secondary, start, end}); // await simulateGesture(win, { shift: false, secondary: !!secondary, start, end });
// } // }
// } // }
// }); // });
@ -159,7 +159,7 @@ context('tool tests', () => {
// @TODO: test transparent document mode // @TODO: test transparent document mode
it(`eraser tool`, () => { it(`eraser tool`, () => {
cy.get(`.tool[title='Eraser/Color Eraser']`).click(); cy.get(`.tool[title='Eraser/Color Eraser']`).click();
// gesture([{x: 50, y: 50}, {x: 100, y: 100}]); // gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
cy.window().then({ timeout: 60000 }, async (win) => { cy.window().then({ timeout: 60000 }, async (win) => {
for (let row = 0; row < 4; row++) { for (let row = 0; row < 4; row++) {
const secondary = !!(row % 2); const secondary = !!(row % 2);
@ -194,7 +194,7 @@ context('tool tests', () => {
["Brush", "Pencil", "Rectangle", "Rounded Rectangle", "Ellipse", "Line"].forEach((toolName) => { ["Brush", "Pencil", "Rectangle", "Rounded Rectangle", "Ellipse", "Line"].forEach((toolName) => {
it(`${toolName.toLowerCase()} tool`, () => { it(`${toolName.toLowerCase()} tool`, () => {
cy.get(`.tool[title='${toolName}']`).click(); cy.get(`.tool[title='${toolName}']`).click();
// gesture([{x: 50, y: 50}, {x: 100, y: 100}]); // gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
cy.get(".swatch:nth-child(22)").rightclick(); cy.get(".swatch:nth-child(22)").rightclick();
cy.window().then({ timeout: 60000 }, async (win) => { cy.window().then({ timeout: 60000 }, async (win) => {
for (let row = 0; row < 4; row++) { for (let row = 0; row < 4; row++) {

View File

@ -118,10 +118,11 @@
<!-- <article class="news-entry" id="news-2021-saving"> <!-- <article class="news-entry" id="news-2021-saving">
<h1>The Savior Update</h1> <h1>The Savior Update</h1>
<time datetime=""></time> <time datetime=""></time>
<img width="" height="" style="max-width: 100%; height: auto; image-rendering: auto;" alt="" src=""/> <img width="" height="" style="max-width: 100%; height: auto; image-rendering: auto;" alt="" src="" />
<p> <p>
<b>Save</b> (<kbd>Ctrl+S</kbd>) can now save over the open file, in Chrome, Edge, and Opera browsers. <b>Save</b> (<kbd>Ctrl+S</kbd>) can now save over the open file, in Chrome, Edge, and Opera browsers.
This works using new <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API">File System Access API</a>. This works using new <a target="_blank"
href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API">File System Access API</a>.
Always use <b>Save As</b> (<kbd>Ctrl+Shift+S</kbd>) if you want to save a new file. Always use <b>Save As</b> (<kbd>Ctrl+Shift+S</kbd>) if you want to save a new file.
</p> </p>
<p> <p>
@ -151,12 +152,13 @@
<b>Colors > Save Colors</b> also now asks for a file name and format. <b>Colors > Save Colors</b> also now asks for a file name and format.
An absurd number of file formats are supported. An absurd number of file formats are supported.
You can even export CSS variables for use in a web design project. You can even export CSS variables for use in a web design project.
RIFF Palette (*.pal) is compatible with MS Paint, and GIMP Palette (*.gpl) is compatible with many open source graphics programs such as Inkscape and Krita. RIFF Palette (*.pal) is compatible with MS Paint, and GIMP Palette (*.gpl) is compatible with many open source
graphics programs such as Inkscape and Krita.
</p> </p>
<p> <p>
You can find lots of palettes to use on <a target="_blank" href="https://lospec.com/palette-list">Lospec</a>. You can find lots of palettes to use on <a target="_blank" href="https://lospec.com/palette-list">Lospec</a>.
Download a palette as GIMP GPL (or several other formats) and use <b>Colors > Get Colors</b> and select the file, Download a palette as GIMP GPL (or several other formats) and use <b>Colors > Get Colors</b> and select
or simply drag and drop the file onto JS Paint to load the palette. the file, or simply drag and drop the file onto JS Paint to load the palette.
</p> </p>
</article> --> </article> -->
<article class="news-entry" id="news-2021-saving"> <article class="news-entry" id="news-2021-saving">