Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / number / number-change-event-by-readonly.html
blobe092a998766339397e80d7567751be4d10d7cdac
1 <script src="../../../resources/js-test.js"></script>
2 <script>
3 description('Read-only number input should not dispatch a change event.');
4 var changeEventCounter = 0;
5 function handleChange() {
6 ++changeEventCounter;
8 var parent = document.createElement('div');
9 parent.innerHTML = '<input type="number" value="0" onchange="handleChange()" readonly>';
10 shouldBe('changeEventCounter', '0');
11 </script>