Author: chabotc
Date: Mon Feb 23 14:42:23 2009
New Revision: 747036

URL: http://svn.apache.org/viewvc?rev=747036&view=rev
Log:
Make the testgadget a bit more interesting by adding oauth and content-rewrite 
features to it

Modified:
    incubator/shindig/trunk/php/test/misc/testGadget.xml

Modified: incubator/shindig/trunk/php/test/misc/testGadget.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/test/misc/testGadget.xml?rev=747036&r1=747035&r2=747036&view=diff
==============================================================================
--- incubator/shindig/trunk/php/test/misc/testGadget.xml (original)
+++ incubator/shindig/trunk/php/test/misc/testGadget.xml Mon Feb 23 14:42:23 
2009
@@ -9,7 +9,7 @@
                author_quote="example quote" author_link="example link" 
show_stats="true"
                show_in_directory="true" width="200" height="100" 
category="example category"
                category2="example category2" singleton="true" 
render_inline="true"
-               scaling="true" scrolling="true">
+               scaling="true" scrolling="false">
                
                <Icon>http://example.org/favicon.ico</Icon>
                
@@ -20,7 +20,24 @@
                <Require feature="flash" />
                <Require feature="setprefs" />
                <Optional feature="missing-feature" />
-                               
+
+        <Optional feature="content-rewrite">
+               <Param name="expires">86400</Param>
+               <Param name="include-url">*</Param>
+               <Param name="exclude-url">.jpeg</Param>
+               <Param name="minify-css">true</Param>
+               <Param name="minify-js">true</Param>
+               <Param name="minify-html">true</Param>
+        </Optional>
+
+           <OAuth>
+             <Service name="google">
+               <Access 
url="https://www.google.com/accounts/OAuthGetAccessToken"; method="GET" /> 
+               <Request 
url="https://www.google.com/accounts/OAuthGetRequestToken?scope=http://www.google.com/m8/feeds/";
 method="GET" /> 
+               <Authorization 
url="https://www.google.com/accounts/OAuthAuthorizeToken?oauth_callback=http://oauth.gmodules.com/gadgets/oauthcallback";
 /> 
+             </Service>
+           </OAuth>
+
                <Locale 
messages="http://www.labpixies.com/campaigns/todo/i19/all_all.xml"/>
                <Locale lang="nl" 
messages="http://www.labpixies.com/campaigns/todo/i19/nl_all.xml"/>
                <Locale lang="nl" country="BE" 
messages="http://www.labpixies.com/campaigns/todo/i19/nl_be.xml"/>
@@ -48,7 +65,28 @@
        <link rel="event.addapp" href="http://www.example.com/add"; />
        <link rel="event.removeapp" href="http://www.example.com/remove"; />
        
-       <Content type="html" view="profile" prefered_height="400" 
prefered_width="300" quirks="true">content</Content>
+       <Content type="html" view="profile" prefered_height="400" 
prefered_width="300" quirks="true"><![CDATA[
+<style type="text/css"> @import url( rewriter1.css ); </style>
+<link rel="stylesheet" type="text/css" href="rewriter2.css"/>
+<p>A simple gadget to demonstrate the content rewriter</p>
+<div>
+  This is a URL in content that was not rewritten http://www.notrewritten.com
+</div>
+<div id="backgrdiv">
+  This div has a background <br/> image from imported CSS
+</div>
+<div id="backgrdiv2">
+  This div has a background <br/> image from linked CSS
+</div>
+<p> This <img id="rewriteimg" src="feather.png" alt="If you can read this 
there is a problem"/> is an image tag that was rewritten</p>
+<p id="jstarget1">If you can read this there is a problem</p>
+<p id="jstarget2">If you can read this there is a problem</p>
+<script type="text/javascript" src="rewriter1.js"></script>
+<script type="text/javascript" src="rewriter2.js"></script>
+<script>
+gadgets.window.adjustHeight();
+</script>
+]]></Content>
        
        <Content type="url" view="canvas" href="http://example.com/foo.html"; 
prefered_height="400" prefered_width="300" quirks="true"></Content>
        


Reply via email to