summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/file/sibling-of-disabled-file-input.html
blob: 6a54182a0dca3f762f1e47522dadc021999b6c0f (plain)
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
<!doctype html>
<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
function onLoad() {
    div1 = document.createElement('div');
    document.body.appendChild(div1);

    div2 = document.createElement('div');
    div1.appendChild(div2);

    fileInput = document.createElement('input');
    fileInput.type = 'file';
    fileInput.disabled = true;
    div2.appendChild(fileInput);

    divTxt = document.createElement('div');
    div2.appendChild(divTxt);

    setTimeout(function() {
        divTxt.appendChild(document.createTextNode('PASS if this text is visible.'));
        if (window.testRunner)
            testRunner.notifyDone();
    }, 1);
}
</script>
</head>
<body onload="onLoad();">
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=104226">https://bugs.webkit.org/show_bug.cgi?id=104226</a>
Disabled file input box stops a certain other div from being rendered.
</p>
</body>
</html>