File tree 1 file changed +8
-3
lines changed
testing/web-platform/tests/fetch/api/request
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,12 @@ var attributes = ["method",
23
23
"integrity" ,
24
24
"isReloadNavigation" ,
25
25
"isHistoryNavigation" ,
26
+ "duplex" ,
26
27
//Request implements Body
27
28
"bodyUsed"
28
29
] ;
29
30
30
- function IsreadOnly ( request , attributeToCheck ) {
31
+ function isReadOnly ( request , attributeToCheck ) {
31
32
var defaultValue = undefined ;
32
33
var newValue = undefined ;
33
34
switch ( attributeToCheck ) {
@@ -46,7 +47,6 @@ function IsreadOnly(request, attributeToCheck) {
46
47
request . headers = new Headers ( { "name" :"value" } ) ;
47
48
assert_false ( request . headers . has ( "name" ) , "Headers attribute is read only" ) ;
48
49
return ;
49
- break ;
50
50
51
51
case "destination" :
52
52
defaultValue = "" ;
@@ -102,6 +102,11 @@ function IsreadOnly(request, attributeToCheck) {
102
102
newValue = true ;
103
103
break ;
104
104
105
+ case "duplex" :
106
+ defaultValue = "half" ;
107
+ newValue = "full" ;
108
+ break ;
109
+
105
110
default :
106
111
return ;
107
112
}
@@ -123,6 +128,6 @@ for (var idx in methods) {
123
128
for ( var idx in attributes ) {
124
129
test ( function ( ) {
125
130
assert_true ( attributes [ idx ] in request , "request has " + attributes [ idx ] + " attribute" ) ;
126
- IsreadOnly ( request , attributes [ idx ] ) ;
131
+ isReadOnly ( request , attributes [ idx ] ) ;
127
132
} , "Check " + attributes [ idx ] + " attribute" ) ;
128
133
}
You can’t perform that action at this time.
0 commit comments