Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/libhtml5.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ var LibraryHTML5 = {
a = a || {};
ag = ag || {};
rr = rr || {};
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenDeviceMotionEvent.supportedFields, 'supportedFields', 'i32') }}};
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationX, 'a["x"]', 'double') }}};
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationY, 'a["y"]', 'double') }}};
{{{ makeSetValue('eventStruct', C_STRUCTS.EmscriptenDeviceMotionEvent.accelerationZ, 'a["z"]', 'double') }}};
Expand Down
3 changes: 2 additions & 1 deletion src/struct_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,8 @@
"accelerationIncludingGravityZ",
"rotationRateAlpha",
"rotationRateBeta",
"rotationRateGamma"
"rotationRateGamma",
"supportedFields"
],
"EmscriptenOrientationChangeEvent": [
"orientationIndex",
Expand Down
3 changes: 2 additions & 1 deletion src/struct_info_generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@
"accelerationZ": 16,
"rotationRateAlpha": 48,
"rotationRateBeta": 56,
"rotationRateGamma": 64
"rotationRateGamma": 64,
"supportedFields": 72
},
"EmscriptenDeviceOrientationEvent": {
"__size__": 32,
Expand Down
3 changes: 2 additions & 1 deletion src/struct_info_generated_wasm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@
"accelerationZ": 16,
"rotationRateAlpha": 48,
"rotationRateBeta": 56,
"rotationRateGamma": 64
"rotationRateGamma": 64,
"supportedFields": 72
},
"EmscriptenDeviceOrientationEvent": {
"__size__": 32,
Expand Down
4 changes: 2 additions & 2 deletions test/codesize/test_codesize_hello_dylink_all.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"a.out.js": 245826,
"a.out.js": 245868,
"a.out.nodebug.wasm": 597769,
"total": 843595,
"total": 843637,
"sent": [
"IMG_Init",
"IMG_Load",
Expand Down
3 changes: 3 additions & 0 deletions test/test_interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def setUpClass(cls):
print('Running the interactive tests. Make sure the browser allows popups from localhost.')
print()

def test_html5_core(self):
self.btest_exit('test_html5_core.c', cflags=['-DKEEP_ALIVE'])

def test_html5_fullscreen(self):
self.btest('test_html5_fullscreen.c', expected='0', cflags=['-sDISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR', '-sEXPORTED_FUNCTIONS=_requestFullscreen,_enterSoftFullscreen,_main', '--shell-file', test_file('test_html5_fullscreen.html')])

Expand Down