Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/preload/document-write/document_write_preload.html

Issue 1863413005: Use a virtual test suite for DocumentWriteEvaluator layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on #386075 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 var t = async_test('Simple scripts that inject external scripts via document.wri te should be preloaded');
6 // We reject scripts with "for", so rename window.performance.
7 window.perf = window.performance;
8 </script>
9 <script>
10 if (window.perf)
11 var boundedStart = window.perf.now();
12 var src = '../../resources/dummy.js';
13 document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
14 </script>
15 <script>
16 window.addEventListener("load", t.step_func(function() {
17 window.performance.getEntriesByType('resource').forEach(function(r) {
18 if (r.name.indexOf('dummy.js') != -1) {
19 assert_less_than(r.startTime, boundedStart);
20 assert_greater_than(r.startTime, 0);
21 t.done();
22 }
23 });
24 }));
25 </script>
26
jkarlin 2016/04/08 15:17:52 Why did this script change in this CL?
jkarlin 2016/04/08 15:18:36 What I mean is, why are there more lines in this f
Charlie Harrison 2016/04/08 15:25:12 The directory changed due to make enable virtual t
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698