summaryrefslogtreecommitdiffstats
path: root/tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html')
-rw-r--r--tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html66
1 files changed, 0 insertions, 66 deletions
diff --git a/tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html b/tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html
deleted file mode 100644
index 9eb82618b9..0000000000
--- a/tests/manual/wasm/qwasmwindow/qwasmwindow_harness.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<!doctype html>
-
-<head>
- <script type="text/javascript" src="qwasmwindow_harness.js"></script>
- <script>
- (async () => {
- const instance = await createQtAppInstance({});
- window.instance = instance;
-
- const testSandbox = document.createElement('div');
- testSandbox.id = 'test-sandbox';
- document.body.appendChild(testSandbox);
-
- const makeSizedDiv = (left, top, width, height) => {
- const screenDiv = document.createElement('div');
-
- screenDiv.style.left = `${left}px`;
- screenDiv.style.top = `${top}px`;
- screenDiv.style.width = `${width}px`;
- screenDiv.style.height = `${height}px`;
- screenDiv.style.backgroundColor = 'lightblue';
-
- return screenDiv;
- };
-
- window.testSupport = {
- initializeScreenWithFixedPosition: (left, top, width, height) => {
- const screenDiv = makeSizedDiv(left, top, width, height);
- testSandbox.appendChild(screenDiv);
-
- screenDiv.style.position = 'fixed';
- instance.qtAddContainerElement(screenDiv);
-
- return screenDiv;
- },
- initializeScreenWithRelativePosition: (left, top, width, height) => {
- const screenDiv = makeSizedDiv(left, top, width, height);
- testSandbox.appendChild(screenDiv);
-
- screenDiv.style.position = 'relative';
- instance.qtAddContainerElement(screenDiv);
-
- return screenDiv;
- },
- initializeScreenInScrollContainer:
- (scrollWidth, scrollHeight, left, top, width, height) => {
- const scrollContainer = document.createElement('div');
- scrollContainer.style.height = `${scrollHeight}px`;
- scrollContainer.style.width = `${scrollWidth}px`;
- testSandbox.appendChild(scrollContainer);
-
- const screenDiv = makeSizedDiv(left, top, width, height);
- scrollContainer.appendChild(screenDiv);
- screenDiv.style.position = 'relative';
-
- instance.qtAddContainerElement(screenDiv);
-
- return [scrollContainer, screenDiv];
- }
- };
- })();
- </script>
-</head>
-
-<body>
-</body>