@@ -124,7 +124,7 @@ mod tests {
124
124
#[ test]
125
125
fn empty_constraint ( ) {
126
126
// As per step 1 of the `SelectSettings` algorithm from the W3C spec:
127
- // https://www.w3.org/TR/mediacapture-streams/#dfn-selectsettings
127
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-selectsettings>
128
128
//
129
129
// > Each constraint specifies one or more values (or a range of values) for its property.
130
130
// > A property MAY appear more than once in the list of 'advanced' ConstraintSets.
@@ -157,7 +157,7 @@ mod tests {
157
157
#[ test]
158
158
fn bool_setting ( ) {
159
159
// As per step 8 of the `fitness distance` function from the W3C spec:
160
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
160
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
161
161
//
162
162
// > For all string, enum and boolean constraints
163
163
// > (e.g. deviceId, groupId, facingMode, resizeMode, echoCancellation),
@@ -192,7 +192,7 @@ mod tests {
192
192
#[ test]
193
193
fn non_bool_settings ( ) {
194
194
// As per step 4 of the `fitness distance` function from the W3C spec:
195
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
195
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
196
196
//
197
197
// > If constraintValue is a boolean, but the constrainable property is not,
198
198
// > then the fitness distance is based on whether the settings dictionary's
@@ -238,7 +238,7 @@ mod tests {
238
238
#[ test]
239
239
fn missing_settings ( ) {
240
240
// As per step 5 of the `fitness distance` function from the W3C spec:
241
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
241
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
242
242
//
243
243
// > If the settings dictionary's constraintName member does not exist,
244
244
// > the fitness distance is 1.
@@ -270,7 +270,7 @@ mod tests {
270
270
#[ test]
271
271
fn compatible_settings ( ) {
272
272
// As per step 7 of the `fitness distance` function from the W3C spec:
273
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
273
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
274
274
//
275
275
// > For all positive numeric constraints
276
276
// > (such as height, width, frameRate, aspectRatio, sampleRate and sampleSize),
@@ -314,7 +314,7 @@ mod tests {
314
314
#[ test]
315
315
fn incompatible_settings ( ) {
316
316
// As per step 3 of the `fitness distance` function from the W3C spec:
317
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
317
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
318
318
//
319
319
// > If the constraint does not apply for this type of object, the fitness distance is 0
320
320
// > (that is, the constraint does not influence the fitness distance).
@@ -364,7 +364,7 @@ mod tests {
364
364
#[ test]
365
365
fn missing_settings ( ) {
366
366
// As per step 5 of the `fitness distance` function from the W3C spec:
367
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
367
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
368
368
//
369
369
// > If the settings dictionary's constraintName member does not exist,
370
370
// > the fitness distance is 1.
@@ -384,7 +384,7 @@ mod tests {
384
384
#[ test]
385
385
fn compatible_settings ( ) {
386
386
// As per step 8 of the `fitness distance` function from the W3C spec:
387
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
387
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
388
388
//
389
389
// > For all string, enum and boolean constraints
390
390
// > (e.g. deviceId, groupId, facingMode, resizeMode, echoCancellation),
@@ -413,7 +413,7 @@ mod tests {
413
413
#[ test]
414
414
fn incompatible_settings ( ) {
415
415
// As per step 3 of the `fitness distance` function from the W3C spec:
416
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
416
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
417
417
//
418
418
// > If the constraint does not apply for this type of object, the fitness distance is 0
419
419
// > (that is, the constraint does not influence the fitness distance).
@@ -452,7 +452,7 @@ mod tests {
452
452
#[ test]
453
453
fn missing_settings ( ) {
454
454
// As per step 5 of the `fitness distance` function from the W3C spec:
455
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
455
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
456
456
//
457
457
// > If the settings dictionary's constraintName member does not exist,
458
458
// > the fitness distance is 1.
@@ -473,7 +473,7 @@ mod tests {
473
473
#[ test]
474
474
fn compatible_settings ( ) {
475
475
// As per step 8 of the `fitness distance` function from the W3C spec:
476
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
476
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
477
477
//
478
478
// > For all string, enum and boolean constraints
479
479
// > (e.g. deviceId, groupId, facingMode, resizeMode, echoCancellation),
@@ -508,7 +508,7 @@ mod tests {
508
508
#[ test]
509
509
fn incompatible_settings ( ) {
510
510
// As per step 3 of the `fitness distance` function from the W3C spec:
511
- // https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance
511
+ // < https://www.w3.org/TR/mediacapture-streams/#dfn-fitness-distance>
512
512
//
513
513
// > If the constraint does not apply for this type of object, the fitness distance is 0
514
514
// > (that is, the constraint does not influence the fitness distance).
0 commit comments