AdaptiveAuthInfoGatheringTest.js revision 1067e734d6cec73ee954f2e43c1bba0e09d267cf
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith/*
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith *
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith *
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * The contents of this file are subject to the terms
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * of the Common Development and Distribution License
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * (the License). You may not use this file except in
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * compliance with the License.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith *
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * You can obtain a copy of the License at
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * https://opensso.dev.java.net/public/CDDLv1.0.html or
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * opensso/legal/CDDLv1.0.txt
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * See the License for the specific language governing
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * permission and limitations under the License.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith *
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * When distributing Covered Code, include this CDDL
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * Header Notice in each file and include the License file
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * at opensso/legal/CDDLv1.0.txt.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * If applicable, add the following below the CDDL Header,
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * with the fields enclosed by brackets [] replaced by
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * your own identifying information:
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * "Portions Copyrighted [year] [name of copyright owner]"
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith *
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith */
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith/*
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * Portions Copyrighted 2013 Syntegrity.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith * Portions Copyrighted 2013 ForgeRock Inc.
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith */
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith/*global define, require*/
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmithrequire.config({
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "packages": [{
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith name: "qunit",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith main: "qunit-amd-1.2.0-SNAPSHOT",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith location: "js/org/codehaus/mojo/qunit-amd/1.2.0-SNAPSHOT"
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith }]
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith});
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmithrequire(["org/forgerock/openam/extensions/authmodules/adaptivedeviceprint/DevicePrintInfoAggregator",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "qunit",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "org/forgerock/openam/extensions/authmodules/adaptivedeviceprint/infocollectors/ScreenInfoCollector",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "org/forgerock/openam/extensions/authmodules/adaptivedeviceprint/infocollectors/TimezoneCollector",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "org/forgerock/openam/extensions/authmodules/adaptivedeviceprint/infocollectors/BrowserPluginsCollector",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith "org/forgerock/openam/extensions/authmodules/adaptivedeviceprint/infocollectors/GeolocationCollector",
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith ],function(cut, qu) {
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith qu.test("passing test", function() {
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith z QUnit.equals("a","a");
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith });
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith qu.test("results length test", function() {
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith var result = cut.collectInfo();
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith //QUnit.equals(result.length,1);
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith console.log(JSON.stringify(result, undefined, 2));
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith });
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith});
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith
c1bef59b02d89a84c23d29663cc4e6d46148ebd2David Goldsmith