Skip to content

Commit d7b0f0c

Browse files
remove testdriver to help hunt test failure in CI
1 parent 8dcaf8d commit d7b0f0c

File tree

3 files changed

+0
-50
lines changed

3 files changed

+0
-50
lines changed

docs/writing-tests/testdriver.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,6 @@ the global scope.
192192
.. js:autofunction:: test_driver.clear_display_features
193193
```
194194

195-
### Global Privacy Control ###
196-
197-
```eval_rst
198-
.. js:autofunction:: test_driver.set_global_privacy_control
199-
.. js:autofunction:: test_driver.set_global_privacy_control
200-
```
201-
202-
203195
### Using test_driver in other browsing contexts ###
204196

205197
Testdriver can be used in browsing contexts (i.e. windows or frames)

resources/testdriver.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,32 +2169,6 @@
21692169
*/
21702170
clear_display_features: function(context=null) {
21712171
return window.test_driver_internal.clear_display_features(context);
2172-
},
2173-
2174-
/**
2175-
* Gets the current globally-applied privacy control status
2176-
*
2177-
* @returns {Promise} Fulfils with an object with boolean property `gpc`
2178-
* that encodes the current "do not sell or share"
2179-
* signal the browser is configured to convey.
2180-
*/
2181-
get_global_privacy_control: function() {
2182-
return window.test_driver_internal.get_global_privacy_control();
2183-
},
2184-
2185-
/**
2186-
* Gets the current globally-applied privacy control status
2187-
*
2188-
* @param {bool} newValue - The a boolean that is true if the browers
2189-
* should convey a "do not sell or share" signal
2190-
* and false otherwise
2191-
*
2192-
* @returns {Promise} Fulfils with an object with boolean property `gpc`
2193-
* that encodes the new "do not sell or share"
2194-
* after applying the new value.
2195-
*/
2196-
set_global_privacy_control: function(newValue) {
2197-
return window.test_driver_internal.set_global_privacy_control(newValue);
21982172
}
21992173
};
22002174

@@ -2512,14 +2486,6 @@
25122486

25132487
async clear_display_features(context=null) {
25142488
throw new Error("clear_display_features() is not implemented by testdriver-vendor.js");
2515-
},
2516-
2517-
async set_global_privacy_control(newValue) {
2518-
throw new Error("set_global_privacy_control() is not implemented by testdriver-vendor.js");
2519-
},
2520-
2521-
async get_global_privacy_control() {
2522-
throw new Error("get_global_privacy_control() is not implemented by testdriver-vendor.js");
25232489
}
25242490
};
25252491
})();

tools/wptrunner/wptrunner/testdriver-extra.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -657,12 +657,4 @@
657657
window.test_driver_internal.clear_display_features = function(context=null) {
658658
return create_context_action("clear_display_features", context, {});
659659
}
660-
661-
window.test_driver_internal.get_global_privacy_control = function(context=null) {
662-
return create_action("get_global_privacy_control", {});
663-
};
664-
665-
window.test_driver_internal.set_global_privacy_control = function(gpc, context=null) {
666-
return create_action("set_global_privacy_control", {gpc});
667-
};
668660
})();

0 commit comments

Comments
 (0)