Skip to content

Commit 553bc11

Browse files
committed
Removed trailing whitespaces and tabs. Removed webperf specs from lint.py whitelist
1 parent e1c8dfc commit 553bc11

38 files changed

+507
-513
lines changed

hr-time/basic.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}, "window.performance is defined", {assert: "The window.performance attribute provides a hosting area for performance related attributes."});
1515

1616
test(function() {
17-
assert_not_equals(window.performance.now, undefined, 'window.performance.now is defined');
17+
assert_not_equals(window.performance.now, undefined, 'window.performance.now is defined');
1818
}, "High Resolution Time extension to the Performance interface", {assert: "window.performance.now exists"});
1919

2020
test(function() {

hr-time/test_cross_frame_start.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html>
33
<head>
44
<meta charset="utf-8" >
5-
<title>window.performance.now across frames</title>
6-
<link rel="author" title="Google" href="http://www.google.com/">
5+
<title>window.performance.now across frames</title>
6+
<link rel="author" title="Google" href="http://www.google.com/">
77
<link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance-interface">
8-
8+
99
<script src="/resources/testharness.js"></script>
10-
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/resources/testharnessreport.js"></script>
1111

1212
<script type="text/javascript">
1313
setup({explicit_done: true});
@@ -24,7 +24,7 @@
2424

2525
function finish_test() {
2626
var childWindow = document.getElementById('frameContext').contentWindow;
27-
27+
2828
// Verify a positive number is returned for both the frame and parent.
2929
test(function() { assert_true(window.performance.now() > 0); }, 'parent performance.now() > 0');
3030
test(function() { assert_true(childWindow.performance.now() > 0); }, 'child performance.now() > 0');
@@ -33,7 +33,7 @@
3333
test(function () { assert_true(childWindow.performance.timing.navigationStart > (window.performance.timing.navigationStart + 1000)); },
3434
'Child created at least 1 second after parent');
3535

36-
test(function () {
36+
test(function () {
3737
var parentNow = window.performance.now();
3838
var childNow = childWindow.performance.now();
3939
var childParentSkew = Math.abs(childNow - parentNow);

navigation-timing/resources/blank_page_meta_redirect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
55
<meta http-equiv="refresh" content="1;URL='blank_page_green.html'" />
6-
<title>Redirect Placeholder</title>
6+
<title>Redirect Placeholder</title>
77
</head>
88
<body style="background-color:#FFFF00";>
99
<h1>Placeholder</h1>

navigation-timing/resources/blank_page_unload.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22
<html>
33
<head>
44
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
5-
5+
66
<title>Yellow Test Page</title>
7-
7+
88
<script type="text/javascript">
99
function onbeforeunload_handler()
1010
{
1111
var temp = "onbeforeunload";
1212
}
13-
13+
1414
function onunload_handler()
1515
{
1616
var temp = "onunload";
1717
}
1818
</script>
1919
</head>
2020
<body onbeforeunload="onbeforeunload_handler();"
21-
onunload="onunload_handler();"
21+
onunload="onunload_handler();"
2222
style="background-color:#FFFF00;">
2323
<h1>Unload</h1>
2424
</body>
25-
</html>
25+
</html>

navigation-timing/test_document_open.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
done();
3535
return;
3636
}
37-
37+
3838
var timing = subcontentWindow.performance.timing;
3939
for (i in timingAttributes) {
4040
originalTiming[timingAttributes[i]] = timing[timingAttributes[i]];

navigation-timing/test_navigate_within_document.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" >
55
<title>window.performance.timing in document navigation</title>
66
<link rel="author" title="Google" href="http://www.google.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
8-
<script src="/resources/testharness.js"></script>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
8+
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>
1111
</head>
@@ -53,9 +53,9 @@ <h1>Description</h1>
5353
done();
5454
return;
5555
}
56-
56+
5757
timing = performanceNamespace.timing;
58-
58+
5959
window.removeEventListener("load", load_handler);
6060
setTimeout("save_timing_after_load()", 0);
6161
}

navigation-timing/test_navigation_attributes_exist.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<title>window.performance.navigation attributes</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_navigation_redirectCount_none.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.navigation.redirectCount on a non-redirected navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_navigation_type_backforward.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.navigation.type for back and forward navigations</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_navigation_type_enums.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.navigation enums</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_navigation_type_reload.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.navigation.type with a reloaded navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>
@@ -31,15 +31,15 @@
3131
return c;
3232
}
3333

34-
34+
3535
function onload_test()
3636
{
3737
reload_frame = document.getElementById("frameContext");
3838
reload_frame.onload = function() {
39-
/* Need to make sure we don't examine loadEventEnd
39+
/* Need to make sure we don't examine loadEventEnd
4040
until after the load event has finished firing */
41-
setTimeout(do_test, 0);
42-
}
41+
setTimeout(do_test, 0);
42+
}
4343
setTimeout("reload_the_frame();", 100);
4444
}
4545

@@ -94,7 +94,7 @@ <h1>Description</h1>
9494
window.performance.timing.* with a reloaded navigation.</p>
9595

9696
<p>This page should be loaded with a green background frame below. The frame will be automatically reloaded
97-
and then verified that
97+
and then verified that
9898
<ul>
9999
<li>The window.performance.navigation.type = TYPE_RELOAD</li>
100100
<li>All of the widow.performance.timing.* values after reload are > all of the window.performance.timing.* values

navigation-timing/test_no_previous_document.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing attributes on an initial navigation</title>
66
<link rel="author" title="Google" href="http://www.google.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>
1111
<link rel="stylesheet" href="/resources/testharness.css" />
12-
12+
1313
<script>
1414
setup({explicit_done: true});
1515

@@ -29,7 +29,7 @@
2929
done();
3030
}
3131
</script>
32-
32+
3333
</head>
3434
<body onload="onload_test();">
3535
<h1>Description</h1>

navigation-timing/test_performance_attributes_exist.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
<meta charset="utf-8" />
55
<title>window.performance attributes</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>
1111
<link rel="stylesheet" href="/resources/testharness.css" />
1212
</head>
1313
<body>
1414
<h1>Description</h1>
15-
<p>This test validates that the navigation and timing attributes exist for window.performance
15+
<p>This test validates that the navigation and timing attributes exist for window.performance
1616
(but does not validate that their values are correct).</p>
1717
<div id="log"></div>
18-
<script>
18+
<script>
1919
test_namespace('navigation');
2020
test_namespace('timing', true);
2121
</script>

navigation-timing/test_performance_attributes_exist_in_object.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance attribute exists in an object</title>
66
<link rel="author" title="Google" href="http://www.google.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_readwrite.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<title>window.performance is read/write</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
8-
<meta name="assert" content="The window.performance attribute provides a hosting area for performance related attributes. "/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute"/>
8+
<meta name="assert" content="The window.performance attribute provides a hosting area for performance related attributes. "/>
99
<script src="/resources/testharness.js"></script>
1010
<script src="/resources/testharnessreport.js"></script>
1111
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_timing_attributes_exist.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing attributes</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_timing_attributes_order.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing attribute ordering on a simple navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_timing_client_redirect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing.redirect attributes on a client redirect navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_timing_reload.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing attributes after a reloaded navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_timing_server_redirect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<title>window.performance.timing.redirect attributes on a same-origin server redirected navigation</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
88
<script src="/resources/testharness.js"></script>
99
<script src="/resources/testharnessreport.js"></script>
1010
<script src="resources/webperftestharness.js"></script>

navigation-timing/test_unique_performance_objects.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<title>Each window object has a unique performance object</title>
66
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7-
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute" />
8-
<meta name="assert" content="Each browsing context must have a unique window.performance.timing attribute."/>
7+
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute" />
8+
<meta name="assert" content="Each browsing context must have a unique window.performance.timing attribute."/>
99
<script src="/resources/testharness.js"></script>
1010
<script src="/resources/testharnessreport.js"></script>
1111
<script src="resources/webperftestharness.js"></script>

page-visibility/idlharness.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>Page Visibility IDL tests</h1>
2323

2424
partial interface Document {
2525
readonly attribute boolean hidden;
26-
readonly attribute VisibilityState visibilityState;
26+
readonly attribute VisibilityState visibilityState;
2727
};
2828
</pre>
2929

page-visibility/resources/pagevistestharness.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function pv_test(func, msg, doc)
3333
doc = document;
3434
}
3535

36-
// only run the feature check once, unless func == null, in which case,
36+
// only run the feature check once, unless func == null, in which case,
3737
// this call is intended as a feature check
3838
if (!feature_check)
3939
{
@@ -54,7 +54,7 @@ function pv_test(func, msg, doc)
5454
assert_true(visStateVal !== undefined && hiddenVal != null,
5555
"document.visibilityState is defined and not null.");},
5656
"document.visibilityState is defined and not null.");
57-
57+
5858
}
5959

6060
if (func)

0 commit comments

Comments
 (0)