https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1b3b2ab7254654e44c418d3c46e9fe7690b1857e authored by James Graham on 12 March 2014, 15:23:28 UTC
Fix manifest JSONifier for new iteration API.
Tip revision: 1b3b2ab
idbfactory_cmp.htm
<!DOCTYPE html>
<html>
<head>  
    <title>IDBFactory.cmp() - compared keys return correct value</title>
    <script type="text/javascript" src="support.js"></script>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script type="text/javascript"> 
        function RunTest() {
            var greater = window.indexedDB.cmp(2, 1);
            var equal = window.indexedDB.cmp(2, 2);
            var less = window.indexedDB.cmp(1, 2);
            
            assert_equals(greater, 1, "greater");
            assert_equals(equal, 0, "equal");
            assert_equals(less, -1, "less");
        }
        
        test(RunTest, "IDBFactory.cmp()", null);
    </script>
</head>
<body>
    <div id="log">
    </div>
</body>
</html>
back to top