@@ -251,18 +251,18 @@ Code block 8::
251251 display.show(Image.PACMAN)
252252
253253
254- Test Case: module.py file can be loaded by file picker and used in main.py
255- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
256- - Load by Load/Save > Or browse for a file, the file ``emoji.py ``
257- - [ ] Confirm the modal dialogue displays 'The "emoji" module has been added to the filesystem.'
254+ Test Case: module.py file can be loaded by modal file picker and used in main.py
255+ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
256+ - Load by "Load/Save > Or browse for a file" the file ``emoji.py ``
257+ - [ ] Confirm the modal dialogue displays 'The "emoji" module has been added
258+ to the filesystem.'
259+ - Click "Show Files (2)"
258260- [ ] Confirm the file shows up in the files list with the same title.
261+ - Return to the editor and replace the current script with "Code block 9".
262+ - [ ] Program by any method this file to the micro:bit and confirm that it
263+ behaves as expected, showing emojis for the appropriate gestures and buttons.
259264
260-
261- Test Case: module.py file can be loaded by file picker and used in main.py
262- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
263- - Load by Load/Save > Add file the file ``emoji.py ``
264- - [ ] Confirm the file shows up in the files list with the same title.
265- - Return to the editor and replace the current script with the following::
265+ Code block 9::
266266
267267 from microbit import *
268268 from emoji import *
@@ -280,65 +280,26 @@ Test Case: module.py file can be loaded by file picker and used in main.py
280280 sleep(2000)
281281 sleep(100)
282282
283- - [ ] Program by any method this file to the micro:bit and confirm that it
284- behaves as expected, showing emojis for the appropriate gestures and buttons.
285283
284+ Test Case: module.py file can be loaded by filesystem file picker
285+ '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
286+ - Load by "Load/Save > Show Files > Add file" the file ``emoji.py ``
287+ - [ ] Confirm the file shows up in the files list with the same title.
286288
287- Test Case: module.py file can be 'magically' loaded into the editor by drag&drop and used in main.py
288- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
289+
290+ Test Case: module.py file can be 'magically' loaded into the editor by drag&drop
291+ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
289292- Load by drag&drop into the editor the file ``emoji.py ``
290293- [ ] Confirm the modal dialogue displays 'The "emoji" module has been added
291294 to the filesystem.'
292295- [ ] Confirm the file shows up in the files list with the same title.
293- - Return to the editor and replace the current script with the following::
294296
295297
296- from microbit import *
297- from emoji import *
298-
299- while True:
300- display.show(😃)
301- if accelerometer.was_gesture('shake'):
302- display.show(😡)
303- sleep(2000)
304- if button_a.was_pressed():
305- display.show(💖)
306- sleep(2000)
307- elif button_b.was_pressed():
308- display.show(🏠)
309- sleep(2000)
310- sleep(100)
311-
312- - [ ] Program by any method this file to the micro:bit and confirm that it
313- behaves as expected, showing emojis for the appropriate gestures and buttons.
314-
315-
316- Test Case: module.py file can be loaded by Load/Save modal drag&drop and used in main.py
317- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
298+ Test Case: module.py file can be loaded by Load/Save modal drag&drop
299+ ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
318300- Load by Load/Save drop area drag&drop the file ``emoji.py ``
319301- [ ] Confirm the modal dialogue displays 'The "emoji" module has been added
320302 to the filesystem.'
321- - Return to the editor and replace the current script with the following::
322-
323-
324- from microbit import *
325- from emoji import *
326-
327- while True:
328- display.show(😃)
329- if accelerometer.was_gesture('shake'):
330- display.show(😡)
331- sleep(2000)
332- if button_a.was_pressed():
333- display.show(💖)
334- sleep(2000)
335- elif button_b.was_pressed():
336- display.show(🏠)
337- sleep(2000)
338- sleep(100)
339-
340- - [ ] Program by any method this file to the micro:bit and confirm that it
341- behaves as expected, showing emojis for the appropriate gestures and buttons.
342303
343304
344305Test Case: Hex file containing module can be loaded in the editor
@@ -366,10 +327,10 @@ Test Case: Snippets inject code into the Text Editor
366327''''''''''''''''''''''''''''''''''''''''''''''''''''
367328- Click the "Snippets" button.
368329- Click on the "if" trigger.
369- - [ ] Confirm the contents defined in "Code block 9 " were injected to the end
330+ - [ ] Confirm the contents defined in "Code block 10 " were injected to the end
370331 of the Text Editor (where the cursor should be by default).
371332
372- Code block 9 ::
333+ Code block 10 ::
373334
374335 if condition:
375336 # TODO: write code...
0 commit comments