summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/MutationObserver/mutation-observer-prefix.html
blob: 251618fa7408c6235fbd66e8ac4e786e88e44d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<script src="../../js/resources/js-test-pre.js"></script>
<script>

description('Test that new WebKitMutationObserver is the same as new MutationObserver.');

var noPrefixObserver = new MutationObserver(function() { });
var prefixObserver = new MutationObserver(function() { });

shouldBeTrue('noPrefixObserver instanceof WebKitMutationObserver');
shouldBeTrue('prefixObserver instanceof WebKitMutationObserver');
shouldBeTrue('noPrefixObserver instanceof MutationObserver');
shouldBeTrue('prefixObserver instanceof MutationObserver');
</script>