mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Minor assert message edits for consistency
This commit is contained in:
parent
fcad88cddd
commit
328c45a1d8
1 changed files with 2 additions and 5 deletions
|
@ -185,10 +185,7 @@ fn test_not_set_start_time_to_redirect_start_if_zero_no_tao() {
|
|||
fn test_set_start_time() {
|
||||
let mut resource_timing: ResourceFetchTiming =
|
||||
ResourceFetchTiming::new(ResourceTimingType::Resource);
|
||||
assert_eq!(
|
||||
resource_timing.start_time, 0,
|
||||
"initial `start_time` should be zero"
|
||||
);
|
||||
assert_eq!(resource_timing.start_time, 0, "`start_time` should be zero");
|
||||
|
||||
// verify setting `start_time` to current time succeeds
|
||||
resource_timing.set_attribute(ResourceAttribute::StartTime(ResourceTimeValue::Now));
|
||||
|
@ -198,7 +195,7 @@ fn test_set_start_time() {
|
|||
fn test_reset_start_time() {
|
||||
let mut resource_timing: ResourceFetchTiming =
|
||||
ResourceFetchTiming::new(ResourceTimingType::Resource);
|
||||
assert_eq!(resource_timing.start_time, 0, "initial `start_time` = 0");
|
||||
assert_eq!(resource_timing.start_time, 0, "`start_time` should be zero");
|
||||
|
||||
resource_timing.start_time = 1;
|
||||
assert!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue