Skip to content

Commit a006ea7

Browse files
committed
fix issue
1 parent 4163f2c commit a006ea7

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/dom/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* The web is much more than just canvas and the DOM functionality makes it easy to interact
33
* with other HTML5 objects, including text, hyperlink, image, input, video,
4-
* audio, and webcam.
4+
* , and webcam.
55
* There is a set of creation methods, DOM manipulation methods, and
66
* an extended <a href="#/p5.Element">p5.Element</a> that supports a range of HTML elements. See the
77
* <a href='https://github.com/processing/p5.js/wiki/Beyond-the-canvas'>

src/image/pixels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ function parseFilterArgs(...args) {
864864
* // Get the entire canvas.
865865
* let c = get();
866866
*
867-
* // Display half the canvas.
867+
* // Display half the .
868868
* image(c, 50, 0);
869869
*
870870
* describe('Two identical mountain landscapes shown side-by-side.');

test/unit/events/keyboard.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,14 @@ suite('Keyboard Events', function() {
182182
test('keyIsDown should return a boolean', function() {
183183
assert.isBoolean(myp5.keyIsDown(65));
184184
});
185-
185+
186186
test('keyIsDown should return true if key is down', function() {
187187
window.dispatchEvent(new KeyboardEvent('keydown', { keyCode: 35 }));
188188
assert.strictEqual(myp5.keyIsDown(35), true);
189189
});
190-
191-
test('keyIsDown should return false if key has length more than 1', function() {
192-
assert.strictEqual(myp5.keyIsDown('ab'), false);
193-
});
194190

191+
test('keyIsDown should return false if key is not down', function() {
192+
assert.strictEqual(myp5.keyIsDown(35), false);
193+
});
195194
});
196195
});

0 commit comments

Comments
 (0)