mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision 36acf7a01cb8ffbbafbd578229c5ad3fde2e47cc
This commit is contained in:
parent
305312e93b
commit
4499a0fbb6
151 changed files with 4858 additions and 2407 deletions
|
@ -96,10 +96,16 @@
|
|||
test(function() {
|
||||
this.add_cleanup(cleanupPerformanceTimeline);
|
||||
assert_throws(new TypeError(), function() {
|
||||
self.performance.measure("wrongUsage2", {'start': 2}, 12);
|
||||
self.performance.measure("optionsAndNumberEnd", {'start': 2}, 12);
|
||||
}, "measure should throw a TypeError when passed an options object and an end time");
|
||||
assert_throws(new TypeError(), function() {
|
||||
self.performance.measure("wrongUsage3", {'start': 2}, 'mark1');
|
||||
self.performance.measure("optionsAndMarkEnd", {'start': 2}, 'mark1');
|
||||
}, "measure should throw a TypeError when passed an options object and an end mark");
|
||||
assert_throws(new TypeError(), function() {
|
||||
self.performance.measure("negativeStartInOptions", {'start': -1});
|
||||
}, "measure cannot have a negative time stamp.");
|
||||
assert_throws(new TypeError(), function() {
|
||||
self.performance.measure("negativeEndInOptions", {'end': -1});
|
||||
}, "measure cannot have a negative time stamp for end.");
|
||||
}, "measure should throw a TypeError when passed an invalid argument combination");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue