chore: fix spelling (#6401)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
The test script will only run the one test on microptyhon. It is not a
|
||||
The test script will only run the one test on micropython. It is not a
|
||||
framework that can be used for other tests. This has a reduced code footprint.
|
||||
entrypoint API is almost the same as the framework.
|
||||
|
||||
@@ -16,7 +16,7 @@ python3 -m pip install pillow
|
||||
Example command line to run the test. I suggest doing this from the root of the
|
||||
binding directory. It is just a simple location to do it from.
|
||||
|
||||
Paths that are passed in MUST be relitive to the current working directory.
|
||||
Paths that are passed in MUST be relative to the current working directory.
|
||||
python3 lib/lv_bindings/lvgl/tests/micropy_test/__init__.py --artifact-path=lib/lv_bindings/lvgl/tests/micropy_test/artifacts --mpy-path=ports/unix/build-standard/micropython
|
||||
|
||||
"""
|
||||
|
||||
@@ -56,7 +56,7 @@ void test_draw_layer_bitmap_mask_from_image_not_found(void)
|
||||
lv_obj_t * obj = lv_obj_create(lv_screen_active());
|
||||
lv_obj_set_size(obj, 200, 200);
|
||||
lv_obj_set_style_bg_color(obj, lv_color_hex3(0xf88), 0);
|
||||
lv_obj_set_style_bitmap_mask_src(obj, "A:not/exisiting/file", 0);
|
||||
lv_obj_set_style_bitmap_mask_src(obj, "A:nonexistent/file", 0);
|
||||
lv_obj_center(obj);
|
||||
|
||||
lv_obj_t * label = lv_label_create(obj);
|
||||
|
||||
@@ -45,7 +45,7 @@ void test_read(void)
|
||||
res = lv_fs_open(&fb, "B:src/test_files/readtest.txt", LV_FS_MODE_RD);
|
||||
TEST_ASSERT_EQUAL(LV_FS_RES_OK, res);
|
||||
|
||||
/*Use an odd size to make sure it's not aligned with the drivier's'cache size*/
|
||||
/*Use an odd size to make sure it's not aligned with the driver's cache size*/
|
||||
uint8_t buf[79];
|
||||
uint32_t cnt = 0;
|
||||
uint32_t br = 1;
|
||||
|
||||
@@ -33,7 +33,7 @@ void obj_set_margin(lv_obj_t * obj, int32_t left, int32_t top, int32_t right, in
|
||||
lv_obj_set_style_margin_bottom(obj, bottom, LV_PART_MAIN);
|
||||
}
|
||||
|
||||
// takes no effect on postiton but size.
|
||||
// takes no effect on position but size.
|
||||
void test_align(void)
|
||||
{
|
||||
lv_obj_t * obj0 = active_screen;
|
||||
|
||||
@@ -43,7 +43,7 @@ void tearDown(void)
|
||||
|
||||
void test_profiler_normal(void)
|
||||
{
|
||||
/* enable profier */
|
||||
/* enable profiler */
|
||||
lv_profiler_builtin_set_enable(true);
|
||||
|
||||
/* reset */
|
||||
@@ -71,7 +71,7 @@ void test_profiler_normal(void)
|
||||
|
||||
void test_profiler_disable(void)
|
||||
{
|
||||
/* disable profier */
|
||||
/* disable profiler */
|
||||
lv_profiler_builtin_set_enable(false);
|
||||
|
||||
/* reset */
|
||||
|
||||
@@ -67,7 +67,7 @@ void test_snapshot_with_transform_should_not_leak_memory(void)
|
||||
TEST_ASSERT_EQUAL(initial_available_memory, final_available_memory);
|
||||
}
|
||||
|
||||
void test_snapshot_take_snapshot_immidiately_after_obj_create(void)
|
||||
void test_snapshot_take_snapshot_immediately_after_obj_create(void)
|
||||
{
|
||||
lv_obj_t * label = lv_label_create(lv_screen_active());
|
||||
lv_obj_set_style_text_font(label, &lv_font_montserrat_28, 0);
|
||||
@@ -123,7 +123,7 @@ void test_snapshot_with_transform_should_not_leak_memory(void)
|
||||
|
||||
}
|
||||
|
||||
void test_snapshot_take_snapshot_immidiately_after_obj_create(void)
|
||||
void test_snapshot_take_snapshot_immediately_after_obj_create(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -235,12 +235,12 @@ void test_roller_with_overlay_and_bubble_events_enabled(void)
|
||||
//
|
||||
//void test_roller_release_handler_pointer_indev(void)
|
||||
//{
|
||||
// /* Clic in the widget */
|
||||
// /* Click in the widget */
|
||||
// lv_test_mouse_click_at(roller_mouse->coords.x1 + 5, roller_mouse->coords.y1 + 5);
|
||||
// /* Check which is the selected option */
|
||||
// TEST_ASSERT_EQUAL(0, lv_roller_get_selected(roller_mouse));
|
||||
//
|
||||
// /* Clic further down the roller */
|
||||
// /* Click further down the roller */
|
||||
// lv_test_mouse_click_at(roller_mouse->coords.x1 + 5, roller_mouse->coords.y1 + 100);
|
||||
// /* Check which is the selected option */
|
||||
// TEST_ASSERT_NOT_EQUAL(0, lv_roller_get_selected(roller_mouse));
|
||||
|
||||
@@ -371,7 +371,7 @@ void test_scale_set_line_needle_value(void)
|
||||
|
||||
lv_obj_t * line = lv_line_create(scale);
|
||||
|
||||
/* test the scale alocating the array */
|
||||
/* test the scale allocating the array */
|
||||
lv_scale_set_line_needle_value(scale, line, 50, 35);
|
||||
TEST_ASSERT_EQUAL_UINT32(2, lv_line_get_point_count(line));
|
||||
const lv_point_precise_t * allocated_points_array = lv_line_get_points(line);
|
||||
|
||||
Reference in New Issue
Block a user