<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -39,13 +39,11 @@
   &lt;script type='text/ruby' src='console_tutorial.rb'&gt;&lt;/script&gt;
 
   &lt;script type=&quot;text/ruby&quot;&gt;
-    $repl = Microsoft::Scripting::Silverlight::Repl.show('ruby')
-    $stdout = $repl.output_buffer
-    $stderr = $repl.output_buffer
+    include Microsoft::Scripting::Silverlight
 
     def load_assembly_from_path(path)
-      Microsoft::Scripting::Silverlight::DynamicApplication.
-        current.runtime.host.platform_adaptation_layer.load_assembly_from_path(path)
+      DynamicApplication.current.runtime.host.platform_adaptation_layer.
+      load_assembly_from_path(path)
     end
 
     # From Silverlight 3 SDK
@@ -57,11 +55,12 @@
     require 'System.Windows.Controls.Toolkit'
 
     require 'gui_tutorial'
-
     Application.Current.RootVisual = GuiTutorial::Window.current
 
-    include System::Windows::Browser
-    if HtmlPage.document.query_string.contains_key &quot;test&quot;.to_clr_string
+    if document.query_string.keys.include?('test')
+      $repl = Repl.show('ruby')
+      $stdout = $repl.output_buffer
+      $stderr = $repl.output_buffer
       require &quot;test/silverlight&quot;
     end
   &lt;/script&gt;</diff>
      <filename>Merlin/Main/Languages/Ruby/Samples/Tutorial/sl_tutorial.html</filename>
    </modified>
    <modified>
      <diff>@@ -18,8 +18,7 @@
 class ReplBufferStream
   def write_to_repl(str)
     GuiTutorial::Window.current.begin_invoke do
-      #TODO: Jimmy, fix me!
-      #$repl.output_buffer.write str
+      $repl.output_buffer.write str
     end
   end
 </diff>
      <filename>Merlin/Main/Languages/Ruby/Samples/Tutorial/test/silverlight.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,9 @@
 
 require 'stringio'
 
-if !defined?(SILVERLIGHT) || !SILVERLIGHT
+SILVERLIGHT = false unless defined?(SILVERLIGHT)
+
+if not SILVERLIGHT
   $: &lt;&lt; File.expand_path(File.dirname(__FILE__) + '/..')
   $: &lt;&lt; File.expand_path(File.dirname(__FILE__) + '/../app')
 end
@@ -126,7 +128,7 @@ module TutorialTests
 
   def self.run_test spec, context, chapter
     chapter.tasks.each do |task| 
-      if not task.should_run? context.bind
+      if not task.should_run? context.bind 
         return
       end
       task.setup.call(context.bind) if task.setup
@@ -161,12 +163,12 @@ describe &quot;TryRubyTutorial&quot; do
 end
 
 if not SILVERLIGHT
-describe &quot;HtmlGeneratorTests&quot; do
-  it &quot;basically works&quot; do
-    tutorial = get_standard_tutorial('tryruby_tutorial.rb')
-    html_tutorial = HtmlTutorial.new tutorial
-    html = html_tutorial.generate_html
-    assert_match %r{&lt;h2&gt;Table of Contents&lt;/h2&gt;}, html
+  describe &quot;HtmlGeneratorTests&quot; do
+    it &quot;basically works&quot; do
+      tutorial = get_standard_tutorial('tryruby_tutorial.rb')
+      html_tutorial = HtmlTutorial.new tutorial
+      html = html_tutorial.generate_html
+      assert_match %r{&lt;h2&gt;Table of Contents&lt;/h2&gt;}, html
+    end
   end
 end
-end</diff>
      <filename>Merlin/Main/Languages/Ruby/Samples/Tutorial/test/test_console.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>36ad18639ac7b49d26ad029764190aca6e81f530</id>
    </parent>
  </parents>
  <author>
    <name>Jimmy Schementi</name>
    <email>jschementi@gmail.com</email>
  </author>
  <url>http://github.com/ironruby/ironruby/commit/c96b1551effae5677b6b04812ecf490296dad4e3</url>
  <id>c96b1551effae5677b6b04812ecf490296dad4e3</id>
  <committed-date>2009-10-23T15:37:07-07:00</committed-date>
  <authored-date>2009-10-21T01:51:25-07:00</authored-date>
  <message>Get IronRuby tutorial tests running in Silverlight again, and only show the console when running tests.</message>
  <tree>036b969f8cb4fb9755eaaa96265446a90ad39f44</tree>
  <committer>
    <name>Jimmy Schementi</name>
    <email>jschementi@gmail.com</email>
  </committer>
</commit>
