{"size": 1269, "ext": "js", "max_stars_repo_path": "tests/shareCookies/006/oex/test.js", "max_stars_repo_name": "operasoftware/operaextensions.js", "max_stars_repo_stars_event_min_datetime": "2015-06-22T10:56:57.000Z", "max_stars_repo_stars_event_max_datetime": "2019-10-13T07:47:03.000Z", "max_issues_repo_path": "tests/shareCookies/006/oex/test.js", "max_issues_repo_name": "Maqentaer/operaextensions.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/shareCookies/006/oex/test.js", "max_forks_repo_name": "Maqentaer/operaextensions.js", "max_forks_repo_forks_event_min_datetime": "2015-04-13T14:32:10.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-28T17:07:44.000Z"}
{"max_stars_count": 7, "max_issues_count": null, "max_forks_count": 10, "avg_line_length": 38.4545454545, "max_line_length": 157, "alphanum_fraction": 0.6122931442}
opera.isReady(function() {
    window.addEventListener(
    		"load",
    		function() {
    		    opera.extension.tabs
    			    .create({
    				url : "http://testsuites.oslo.osa/core/features/widget_tf/core-gadgets/extensions/share-cookies/res/mkc.php?setck=name=ck_domain1;value=1;"
    			    });
    		    opera.extension.tabs
    			    .create({
    				url : "http://www.testsuites.oslo.opera.com/core/features/widget_tf/core-gadgets/extensions/share-cookies/res/mkc.php?setck=name=ck_domain2;value=2;"
    			    });
    		}, false);

    opera.extension.onmessage = function(e) {
        opera.postError(e.data);
        if (e.data && e.data.indexOf("Loaded:") == 0) {
    	opera.postError('message received in extension');
    	if (checkCookie(
    		"name=ck_domain1;value=1",
    		"http://testsuites.oslo.osa/core/features/widget_tf/core-gadgets/extensions/share-cookies/res/mkc.php")
    		&& checkCookie(
    			"name=ck_domain2;value=2",
    			"http://www.testsuites.oslo.opera.com/core/features/widget_tf/core-gadgets/extensions/share-cookies/res/mkc.php")) {
    	    POST("PASSED");
    	} else {
    	    POST("FAILED", "Did not get the expected cookie value.");
    	}
        } else {
    	opera.postError('message:' + e);
        }
    }
});