UNPKG

gpii-windows

Version:

Components of the GPII personalization infrastructure for use on Microsoft's "Windows" ™

41 lines (31 loc) 1.31 kB
/* * Windows Utilities Unit Tests * * Copyright 2015 Raising the Floor - International * * Licensed under the New BSD license. You may not use this file except in * compliance with this License. * * The research leading to these results has received funding from the European Union's * Seventh Framework Programme (FP7/2007-2013) * under grant agreement no. 289016. * * You may obtain a copy of the License at * https://github.com/GPII/universal/blob/master/LICENSE.txt */ "use strict"; var fluid = require("gpii-universal"); var jqUnit = fluid.require("node-jqunit"); var gpii = fluid.registerNamespace("gpii"); fluid.registerNamespace("gpii.tests.windows.registryResolver"); require("../src/RegistryResolver.js"); jqUnit.module("Registry Resolver"); jqUnit.test("Test Boolean Registry Lookups", function () { jqUnit.expect(2); jqUnit.assertTrue("Testing a registry key that always exists.", gpii.deviceReporter.registryKeyExists("HKEY_LOCAL_MACHINE", "Software\\Microsoft\\Windows NT\\CurrentVersion", "SystemRoot", "REG_DWORD")); jqUnit.assertFalse("Testing a registry key that does not exist.", gpii.deviceReporter.registryKeyExists("HKEY_CURRENT_USER", "Software\\Microsoft\\ScreenMagnifier", "NotARealSubPath", "REG_DWORD")); });