Skip to content

Commit

Permalink
Fixup indentation from PR 21379
Browse files Browse the repository at this point in the history
web-platform-tests#21379 used an approach
which was known to cause indentation problems in some cases. This commit
is an attempt to fixup any indentation issues, by running a (hacky)
script to parse the diff and locate places where indentation was broken.
  • Loading branch information
stephenmcgruer committed Jan 27, 2020
1 parent 21578f2 commit e836541
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
34 changes: 17 additions & 17 deletions IndexedDB/idbcursor-advance-invalid.htm
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(document); });
function() { cursor.advance(document); });

assert_throws_js(TypeError,
function() { cursor.advance({}); });
function() { cursor.advance({}); });

assert_throws_js(TypeError,
function() { cursor.advance([]); });
function() { cursor.advance([]); });

assert_throws_js(TypeError,
function() { cursor.advance(""); });
function() { cursor.advance(""); });

assert_throws_js(TypeError,
function() { cursor.advance("1 2"); });
function() { cursor.advance("1 2"); });

t.done();
});
Expand All @@ -91,14 +91,14 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(null); });
function() { cursor.advance(null); });

assert_throws_js(TypeError,
function() { cursor.advance(undefined); });
function() { cursor.advance(undefined); });

var myvar = null;
assert_throws_js(TypeError,
function() { cursor.advance(myvar); });
function() { cursor.advance(myvar); });

t.done();
});
Expand All @@ -117,7 +117,7 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(); });
function() { cursor.advance(); });

t.done();
});
Expand All @@ -135,26 +135,26 @@
var cursor = e.target.result;

assert_throws_js(TypeError,
function() { cursor.advance(-1); });
function() { cursor.advance(-1); });

assert_throws_js(TypeError,
function() { cursor.advance(NaN); });
function() { cursor.advance(NaN); });

assert_throws_js(TypeError,
function() { cursor.advance(0); });
function() { cursor.advance(0); });

assert_throws_js(TypeError,
function() { cursor.advance(-0); });
function() { cursor.advance(-0); });

assert_throws_js(TypeError,
function() { cursor.advance(Infinity); });
function() { cursor.advance(Infinity); });

assert_throws_js(TypeError,
function() { cursor.advance(-Infinity); });
function() { cursor.advance(-Infinity); });

var myvar = -999999;
assert_throws_js(TypeError,
function() { cursor.advance(myvar); });
function() { cursor.advance(myvar); });

t.done();
});
Expand All @@ -179,7 +179,7 @@
}

assert_throws_js(TypeError,
function() { cursor.advance(0); });
function() { cursor.advance(0); });

cursor.advance(1);
count++;
Expand Down
16 changes: 8 additions & 8 deletions custom-elements/HTMLElement-constructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@
// reset the counter.
getCount = 0;
assert_throws_js(TypeError,
function () { new countingProxy() },
"Should not be able to construct an HTMLElement named 'button'");
function () { new countingProxy() },
"Should not be able to construct an HTMLElement named 'button'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLElement constructor must not get .prototype until it finishes its extends sanity checks, calling proxy constructor directly');

Expand All @@ -201,8 +201,8 @@
// reset the counter.
getCount = 0;
assert_throws_js(TypeError,
function () { Reflect.construct(HTMLElement, [], countingProxy) },
"Should not be able to construct an HTMLElement named 'button'");
function () { Reflect.construct(HTMLElement, [], countingProxy) },
"Should not be able to construct an HTMLElement named 'button'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLElement constructor must not get .prototype until it finishes its extends sanity checks, calling via Reflect');

Expand All @@ -220,8 +220,8 @@

// Purposefully don't register it.
assert_throws_js(TypeError,
function () { new countingProxy() },
"Should not be able to construct an HTMLElement named 'button'");
function () { new countingProxy() },
"Should not be able to construct an HTMLElement named 'button'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLElement constructor must not get .prototype until it finishes its registration sanity checks, calling proxy constructor directly');

Expand All @@ -239,8 +239,8 @@

// Purposefully don't register it.
assert_throws_js(TypeError,
function () { Reflect.construct(HTMLElement, [], countingProxy) },
"Should not be able to construct an HTMLElement named 'button'");
function () { Reflect.construct(HTMLElement, [], countingProxy) },
"Should not be able to construct an HTMLElement named 'button'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLElement constructor must not get .prototype until it finishes its registration sanity checks, calling via Reflect');
</script>
Expand Down
8 changes: 4 additions & 4 deletions custom-elements/htmlconstructor/newtarget.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@
// reset the counter.
getCount = 0;
assert_throws_js(TypeError,
function () { new countingProxy() },
"Should not be able to construct an HTMLParagraphElement not named 'p'");
function () { new countingProxy() },
"Should not be able to construct an HTMLParagraphElement not named 'p'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling proxy constructor directly');

Expand All @@ -225,8 +225,8 @@
// reset the counter.
getCount = 0;
assert_throws_js(TypeError,
function () { Reflect.construct(HTMLParagraphElement, [], countingProxy) },
"Should not be able to construct an HTMLParagraphElement not named 'p'");
function () { Reflect.construct(HTMLParagraphElement, [], countingProxy) },
"Should not be able to construct an HTMLParagraphElement not named 'p'");
assert_equals(getCount, 0, "Should never have gotten .prototype");
}, 'HTMLParagraphElement constructor must not get .prototype until it finishes its extends sanity checks, calling via Reflect');
</script>
Expand Down
8 changes: 4 additions & 4 deletions media-source/mediasource-sourcebuffer-mode-timestamps.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
var sourceBuffer = mediaSource.addSourceBuffer(mime);
assert_equals(sourceBuffer.updating, false, "SourceBuffer.updating is false");
assert_throws_js(TypeError,
function() {
sourceBuffer.mode = "segments";
},
'SourceBuffer#mode with generate timestamps flag true');
function() {
sourceBuffer.mode = "segments";
},
'SourceBuffer#mode with generate timestamps flag true');
}), false);
var video = document.createElement('video');
video.src = window.URL.createObjectURL(mediaSource);
Expand Down

0 comments on commit e836541

Please sign in to comment.