-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (42 loc) · 1.39 KB
/
index.html
File metadata and controls
42 lines (42 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Breeze - E2E Testing</title>
<script type="module" src="src/index"></script>
</head>
<body>
<script>
// Stub for SMF's sceditor - required for the Editor component.
// Proxies val() to the underlying textarea so E2E tests can interact
// with the editor via standard DOM fill/type.
window.smf_you_sure = 'Are you sure you want to do this?';
window.sceditor = {
create: function() {},
instance: function(textarea) {
return {
val: function(v) {
if (textarea) {
if (v !== undefined) {
var nativeSetter = Object.getOwnPropertyDescriptor(
window.HTMLTextAreaElement.prototype, 'value'
).set;
nativeSetter.call(textarea, v);
textarea.dispatchEvent(new Event('input', { bubbles: true }));
return;
}
return textarea.value;
}
return v !== undefined ? undefined : '';
},
createPermanentDropDown: function() {},
toggleSourceMode: function() {}
};
}
};
</script>
<div id="root" wallType="wall"></div>
<div id="tab-about" style="display:none;"></div>
<div id="tab-buddies" style="display:none;"></div>
</body>
</html>