Skip to content

Instantly share code, notes, and snippets.

View shivanipods's full-sized avatar

Shivani Poddar shivanipods

View GitHub Profile
@shivanipods
shivanipods / gist:5457600
Created April 25, 2013 05:02
Error in building gnome-demo-app
shivani@shivani:~/gnome-music/src$ gjs music.js
JS ERROR: !!! Exception was: Error: Requiring Gtk, version none: Typelib file for namespace 'Gtk' (any version) not found
JS ERROR: !!! message = '"Requiring Gtk, version none: Typelib file for namespace 'Gtk' (any version) not found"'
JS ERROR: !!! fileName = '"music.js"'
JS ERROR: !!! lineNumber = '4'
JS ERROR: !!! stack = '"@music.js:4
"'
Error: Requiring Gtk, version none: Typelib file for namespace 'Gtk' (any version) not found
From de28b87a18c665a4bab45d4acdeffeb6e783a422 Mon Sep 17 00:00:00 2001
From: Shivani Poddar <[email protected]>
Date: Fri, 26 Apr 2013 00:03:30 +0530
Subject: [PATCH] tweaked the toogle button
---
src/player.js | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/player.js b/src/player.js
From 5d3c58474945ecb25de44cb5c7e0f8eaaa58f04f Mon Sep 17 00:00:00 2001
From: Shivani Poddar <[email protected]>
Date: Sun, 28 Apr 2013 20:51:39 +0530
Subject: [PATCH] tweak in player
---
src/player.js | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/player.js b/src/player.js
@shivanipods
shivanipods / gist:5488730
Created April 30, 2013 13:35
Final patch tweak in the play-pause button
From 5a928c5316f0dbf4b89787f30896ee3976a8116e Mon Sep 17 00:00:00 2001
From: Shivani Poddar <[email protected]>
Date: Tue, 30 Apr 2013 18:59:31 +0530
Subject: [PATCH] Fix play pause button
---
src/player.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/player.js b/src/player.js
@shivanipods
shivanipods / gist:5491956
Created April 30, 2013 21:06
Final Patch for fixing play pause button in player.js
From 379de92b5f69889097cfb05f73c1850f8276a209 Mon Sep 17 00:00:00 2001
From: Shivani Poddar <[email protected]>
Date: Wed, 1 May 2013 02:35:41 +0530
Subject: [PATCH] Fixed Play-Pause button
---
src/player.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/player.js b/src/player.js
Hi Shivani,
Just thought that following strict Gherkin standards makes cases almost unreadable. As soon as we're using only When-And-Then here, in order to make scenarios readable,
I'd like to propose some guidelines for scenarios:
1) All steps which set the system into testable state (preconditions, setups etc.) should use either Background (for all scenarios) or Given (for specific scenario), e.g:
When The song is playing
And Next-arrow button is pressed
--------
Given the song is played
const ComboBox = new Lang.Class({
Name:"ComboBox"
// Create the combobox
_init:function() {
this.parent();
this._comboBoxText = new Gtk.ComboBoxText();
let image = Gtk.Image.new_from_icon_name("media-playlist-repeat-symbolic", Gtk.IconSize.MENU);
let arrow = Gtk.Image.new_from_icon_name("go-down-symbolic", Gtk.IconSize.MENU);
// Populate the combobox
JS ERROR: !!! Exception was: SyntaxError: missing } after property list
JS ERROR: !!! message = '"missing } after property list"'
JS ERROR: !!! fileName = '"/usr/local/share/gnome-music/player.js"'
JS ERROR: !!! lineNumber = '73'
JS ERROR: !!! stack = '"@/usr/local/share/gnome-music/window.js:31
@/usr/local/share/gnome-music/application.js:29
@/usr/local/share/gnome-music/main.js:24
start@/usr/local/share/gnome-music/package.js:141
@./gnome-music:3
"'
JS ERROR: !!! Exception was: SyntaxError: missing } after property list
JS ERROR: !!! message = '"missing } after property list"'
JS ERROR: !!! fileName = '"/usr/local/share/gnome-music/player.js"'
JS ERROR: !!! lineNumber = '73'
JS ERROR: !!! stack = '"@/usr/local/share/gnome-music/window.js:31
@/usr/local/share/gnome-music/application.js:29
@/usr/local/share/gnome-music/main.js:24
start@/usr/local/share/gnome-music/package.js:141
@./gnome-music:3
"'
/*
* Copyright (c) 2013 Eslam Mostafa.
* Copyright (c) 2013 Vadim Rutkovsky.
* Copyright (c) 2013 Seif Lotfy <[email protected]>
*
* Gnome Music is free software; you can Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* Gnome Music is distributed in the hope that it will be useful, but