Revision 273bb41376c98c36e743186b63ec3cffa58a5339 authored by Ovidio Henriquez on 23 March 2018, 15:12:10 UTC, committed by Blink WPT Bot on 23 March 2018, 15:30:21 UTC
This change allows the removal of a descriptor to be simulated by the Bluetooth test interface. A generated test script was also converted to test the new interface. BUG=569709 Change-Id: Id4286a3e44cd04ee1b371938f1ef89f33458269c Reviewed-on: https://chromium-review.googlesource.com/972334 Reviewed-by: Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Conley Owens <cco3@chromium.org> Commit-Queue: Ovidio Henriquez <odejesush@chromium.org> Cr-Commit-Position: refs/heads/master@{#545448}
1 parent 2d1fd9e
allow-lists-starting-with-comma.htm
<!DOCTYPE html>
<html>
<head>
<title>Allow lists starting with a comma should be parsed correctly</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
</head>
<body>
<script type="text/javascript">
async_test(function(test) {
const client = new XMLHttpRequest();
let url = "xhr/resources/access-control-allow-lists.py?headers=,y-lol,x-print,%20,,,y-print&origin=" +
get_host_info().HTTP_ORIGIN;
client.open("GET", get_host_info().HTTP_REMOTE_ORIGIN + '/' + url, false);
client.setRequestHeader('x-print', 'unicorn')
client.setRequestHeader('y-print', 'narwhal')
// Sending GET request with custom headers
assert_equals(client.send(null), undefined);
const response = JSON.parse(client.response);
assert_equals(response['x-print'], "unicorn");
assert_equals(response['y-print'], "narwhal");
url = "xhr/resources/access-control-allow-lists.py?methods=,,PUT,GET&origin=" +
get_host_info().HTTP_ORIGIN;
client.open("PUT", get_host_info().HTTP_REMOTE_ORIGIN + '/' + url, false);
// Sending PUT request
assert_equals(client.send(null), undefined);
test.done();
}, "Allow lists starting with a comma should be parsed correctly");
</script>
</body>
</html>
Computing file changes ...