Add Chromium-only Blender WebEngine parity work
This commit is contained in:
24
web/engine/web_engine_native_smoke.cpp
Normal file
24
web/engine/web_engine_native_smoke.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <cstdio>
|
||||
|
||||
#include "web_engine_api.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
const int handle = web_engine_create();
|
||||
const int open_result = web_engine_open_blend(handle, nullptr, 0);
|
||||
const int command_result = web_engine_apply_command(handle, nullptr, 0);
|
||||
const uint32_t live_before_destroy = web_engine_get_live_handles();
|
||||
web_engine_destroy(handle);
|
||||
const uint32_t live_after_destroy = web_engine_get_live_handles();
|
||||
|
||||
std::printf("{\"handle\":%d,\"open\":%d,\"command\":%d,\"liveBeforeDestroy\":%u,\"liveAfterDestroy\":%u}\n",
|
||||
handle,
|
||||
open_result,
|
||||
command_result,
|
||||
live_before_destroy,
|
||||
live_after_destroy);
|
||||
return handle == 1 && open_result == -2 && command_result == -2 && live_before_destroy == 1 &&
|
||||
live_after_destroy == 0 ?
|
||||
0 :
|
||||
1;
|
||||
}
|
||||
Reference in New Issue
Block a user