- a/LayoutTests/ChangeLog +15 lines
Lines 1-3 a/LayoutTests/ChangeLog_sec1
1
2013-01-14  Rafael Weinstein  <rafaelw@chromium.org>
2
3
        fast/dom/HTMLTemplateElement/inertContents.html is flaky on Debug Chromium bots
4
        https://bugs.webkit.org/show_bug.cgi?id=106810
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        This patch reverts the test for inertContents back to a non-flaky version which did not
9
        attempt to assert that images are prevented from loaded.
10
11
        * fast/dom/HTMLTemplateElement/inertContents-expected.txt:
12
        * fast/dom/HTMLTemplateElement/inertContents.html:
13
        * platform/chromium/TestExpectations:
14
        * platform/efl/fast/dom/HTMLTemplateElement/inertContents-expected.txt: Removed.
15
1
2013-01-11  Filip Pizlo  <fpizlo@apple.com>
16
2013-01-11  Filip Pizlo  <fpizlo@apple.com>
2
17
3
        Python implementation reports "MemoryError" instead of doing things
18
        Python implementation reports "MemoryError" instead of doing things
- a/LayoutTests/fast/dom/HTMLTemplateElement/inertContents-expected.txt -5 / +9 lines
Lines 1-7 a/LayoutTests/fast/dom/HTMLTemplateElement/inertContents-expected.txt_sec1
1
http://foo.com/shouldLoad.jpg - willSendRequest <NSURLRequest URL http://foo.com/shouldLoad.jpg, main document URL inertContents.html, http method GET> redirectResponse (null)
1
The test asserts that elements within template contents are "inert", e.g. script does not run.
2
Blocked access to external URL http://foo.com/shouldLoad.jpg
3
http://foo.com/shouldLoad.jpg - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999, failing URL "(null)">
4
The test asserts that elements within template contents are "inert", e.g. resources do not fetch, script does not run.
5
2
6
Before template content insertion: script did not run, after template content insertion: script did run.
3
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6
PASS testVal is "script has not run"
7
PASS testVal is "script has run"
8
PASS successfullyParsed is true
9
10
TEST COMPLETE
7
11
- a/LayoutTests/fast/dom/HTMLTemplateElement/inertContents.html -25 / +13 lines
Lines 1-29 a/LayoutTests/fast/dom/HTMLTemplateElement/inertContents.html_sec1
1
<!DOCTYPE html>
1
<body>
2
<body>
2
<p>The test asserts that elements within template contents are "inert", e.g. resources do not fetch, script does not run.</p>
3
<script src="../../js/resources/js-test-pre.js"></script>
3
<template id="template"><script>window.testVal = "script did run";</script><img src="http://foo.com/shouldNotLoad.jpg"></template>
4
<div id="output">
5
</div>
6
7
<script>
4
<script>
8
var testVal = "script did not run";
5
var testVal = 'script has not run';
9
10
window.onload = function() {
11
    if (window.testRunner) {
12
        testRunner.dumpAsText();
13
        testRunner.dumpResourceLoadCallbacks();
14
    }
15
16
    var output = document.getElementById('output');
17
    output.innerHTML = 'Before template content insertion: ' + testVal;
18
    
19
    var templateContent = document.getElementById('template').content;
20
    var img = templateContent.childNodes[1];
21
    img.src = "http://foo.com/shouldLoad.jpg";
22
    document.body.appendChild(templateContent);
23
24
    output.innerHTML += ', after template content insertion: ' + testVal + '.';
25
}
26
</script>
6
</script>
27
</head>
7
<!-- FIXME: Add non-flaky test for <img> tags -->
28
<body>
8
<template><script>window.testVal = 'script has run';</script></template>
9
<script>
10
description('The test asserts that elements within template contents are "inert", e.g. script does not run.');
11
shouldBeEqualToString('testVal', 'script has not run');
12
var templateContent = document.querySelector('template').content;
13
document.body.appendChild(templateContent);
14
shouldBeEqualToString('testVal', 'script has run');
15
</script>
16
<script src="../../js/resources/js-test-post.js"></script>
29
</body>
17
</body>
- a/LayoutTests/platform/chromium/TestExpectations -1 lines
Lines 4365-4369 Bug(schenney) svg/W3C-SVG-1.1/text-text-08-b.svg [ ImageOnlyFailure ] a/LayoutTests/platform/chromium/TestExpectations_sec1
4365
Bug(schenney) svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t.svg [ ImageOnlyFailure ]
4365
Bug(schenney) svg/W3C-SVG-1.2-Tiny/struct-use-recursion-02-t.svg [ ImageOnlyFailure ]
4366
Bug(schenney) svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t.svg [ ImageOnlyFailure ]
4366
Bug(schenney) svg/W3C-SVG-1.2-Tiny/struct-use-recursion-03-t.svg [ ImageOnlyFailure ]
4367
4367
4368
webkit.org/b/106810 [ Debug ] fast/dom/HTMLTemplateElement/inertContents.html [ Pass Failure ]
4369
webkit.org/b/106833 fast/borders/outline-alpha-inline.html [ Pass ImageOnlyFailure ]
4368
webkit.org/b/106833 fast/borders/outline-alpha-inline.html [ Pass ImageOnlyFailure ]
- a/LayoutTests/platform/efl/fast/dom/HTMLTemplateElement/inertContents-expected.txt -7 lines
Lines 1-7 a/LayoutTests/platform/efl/fast/dom/HTMLTemplateElement/inertContents-expected.txt_sec1
1
http://foo.com/shouldLoad.jpg - willSendRequest <NSURLRequest URL http://foo.com/shouldLoad.jpg, main document URL inertContents.html, http method GET> redirectResponse (null)
2
Blocked access to external URL http://foo.com/shouldLoad.jpg
3
http://foo.com/shouldLoad.jpg - didFailLoadingWithError: <NSError domain NSURLErrorDomain, code -999>
4
The test asserts that elements within template contents are "inert", e.g. resources do not fetch, script does not run.
5
6
Before template content insertion: script did not run, after template content insertion: script did run.
7

Return to Bug 106810