| Index: chrome/test/data/webui/splitter_test.html
|
| diff --git a/chrome/test/data/webui/splitter_test.html b/chrome/test/data/webui/splitter_test.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9d4a567b82a56797d4a32ba21a8e7b578e73ece8
|
| --- /dev/null
|
| +++ b/chrome/test/data/webui/splitter_test.html
|
| @@ -0,0 +1,22 @@
|
| +<!doctype html>
|
| +<html>
|
| +<body>
|
| +<div></div>
|
| +<div id="splitter"></div>
|
| +<div></div>
|
| +<script>
|
| +function testSplitter_IgnoresRightMouse() {
|
| + var splitter = document.getElementById('splitter');
|
| + cr.ui.decorate(splitter, cr.ui.Splitter);
|
| +
|
| + var downRight = new MouseEvent('mousedown', {button: 1, cancelable: true});
|
| + assertTrue(splitter.dispatchEvent(downRight));
|
| + assertFalse(downRight.defaultPrevented);
|
| +
|
| + var downLeft = new MouseEvent('mousedown', {button: 0, cancelable: true});
|
| + assertFalse(splitter.dispatchEvent(downLeft));
|
| + assertTrue(downLeft.defaultPrevented);
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|